Create a virtual environment with Python 3.8
Make sure you have Python 3.8 installed in your system and know where it is located.
Linux or macos
python -m virtualenv --python=/path/to/python3.8 .venv
Windows Powershell or Command Prompt
python -m virtualenv --python="\path\to\python3.8" .venv
If you don't have
virtualenv
installed, here's the command to do it right away:Linux and macos
pip install --upgrade virtualenvWindows
python -m pip install --upgrade virtualenvIf
pip
doesn't work in Windows, try withpip3
.
If you have followed the steps properly without error, you will be able to start the python virtual environment with the following command
Linux or macos
source .venv/bin/activate
Windows Powershell or Command Prompt
.venv\Scripts\activate
pip install -r requirements.txt
Tensorflow will be installed in this step and it's huge (around 600mb). So make sure you are connected to a WiFi network.
Run the application with the following command
python app.py