To Run Flask Serer refer Api/FlaskApi.py. This import flask and defines an Rest API
First start using venv activate. Once venv is activated check what is pip version
pip --version
This should show that pip is from venv
you can also update pip using command
python -m pip install upgrade pip
you can manually install any python library package using command
python -m pip install {package-name}
You can install multiple packages by requriment.txt file as follows
-- requirement.txt File defines all the python plugin or library we need to use in PythonApp.
pip install -r .\requirements.txt
Set Following Environment Variables for project
- FLASK_APP : Api/FlaskApi.py
- FLASK_ENV : development
- FLASK_DEBUG : 1
reference:
https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/