venv python version code example
Example 1: how to set up python virtual environment
pip install virtualenv
virtualenv dataengineer_pipeline
python -m venv dataengineer_pipeline
dataengineer_pipeline/bin/activate
dataengineer_pipeline\Scripts\activate.bat
deactivate
Example 2: how to make a virtual environment in python
py -m venv env
Example 3: uses specific version python venv
pip install virtualenv
virtualenv -p PYTHONPATH <path/to/new/virtualenv/>
Example 4: virtualenv specify python version
virtualenv --python=/usr/bin/python2.6 <path/to/new/virtualenv/>
Example 5: start virtualenv with python version
python3 -m venv <myenvname>