activate venv environment code example
Example 1: python virtual environment
python3 -m venv env
python -m virtualenv env
source env/bin/activate
Example 2: activate venv
source env/bin/activate
Example 3: virtual environment python
pip install virtualenv
virtualenv pas
.\foldername\Scripts\activate
pip freeze
pip freeze > requirements.txt
pip install -r requirements.txt
virtualenv --system-site-packages-foldername
deactivate
Example 4: activate venv
venv\Scripts\activate.bat
Example 5: how to activate the pytho virtual environment
mypthon\Scripts\activate