Quickly set up a Python3 Virtual Environment using the following steps:
- Create python virtual environment:
- Unix:
python3 -m venv env
- Windows:
py -m venv env
- Unix:
- Activate Environment:
- Unix:
source env/bin/activate
- Windows:
.\env\Scripts\activate
- Unix:
- OPTIONAL: Upgrade Pip:
python -m pip install --upgrade pip
- Install Packages:
python -m pip install -r requirements.txt
- OPTIONAL: To deactivate virtual environment:
- Unix: within active project directory type:
deactivate
- Windows:
venv\Scripts\deactivate.bat
- Unix: within active project directory type: