Firstly you have the python with latest version in your system.
Now you need any of text editor(i used SUBLIME as a text editor). Then, save your file with
.pyextension(likemyfile.py).
Now Download the MySQL WorkBench database in your system. And register here, create the account and connect it with your system by using his commands.
After all of these:
install the mysql connector in your system:
- open the terminal
- go to the folder where your file is located or which folder you created for this project.
- now create the virtual environment in your folder:
- type: python -m venv .
- here the mean of venv is: v for virtual and env for environment.
- after create the venv we need to activate it.
- use: source /bin/activate
- if you need to deactivate you write just deactivate.
- after venv creation we run the command:
- pip install mysql-connector-python
- say every yes Y for accept the T&C.
after these activities, we need to going install the faker module:
- run the commands in terminal in your folder directory in venv:
- pip install faker
if you did all of these action: write my code in the file.