Examples to understand Python concepts and it's applications.
Setting Python virtual env
-
Create a virtual env
virtualenv -p python3 ~/venvs/virtual_env_name -
Activate the env
source ~/venvs/virtual_env_name/bin/activate -
Switch to any directory in the repo
pip install -r requirements.txt
Run code
python file_name.py
Note: Any specific difference for any code snippet from these steps is a part of that directory itself.