create virtual environment python 3.7 code example
Example 1: creating venv python3
mkdir project_folder
cd project_folder
python3.7 -m venv myvenv
virtualenv myvenv --python=python3.7
source myvenv/bin/activate
Example 2: 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 3: how to use virtual environment python
source env/bin/activate
Example 4: how to use virtual environment python
python3 -m pip install --user virtualenv
Example 5: create a virtualenv python3
py -m venv env
Example 6: creating a virtual environment in python 3.8
c:\>python -m venv c:\path\to\myenv