python virtual environment linux code example
Example 1: python virtual environment
python3 -m venv env
python -m virtualenv env
source env/bin/activate
Example 2: python create virtualenv
pip install virtualenv
cd projectfolder
python -m venv ./venv
Activate.ps1
activate.bat
Example 3: start virtual environment python linux
source env/bin/activate
Example 4: setting p a virtual envioronment
...\> py -m venv project_name
...\> project_name\Scripts\activate.bat
...\> py -m pip install Django
Example 5: start python virtual
activate venv
Example 6: how to activate the pytho virtual environment
mypthon\Scripts\activate