open virtual environment python code example
Example 1: python virtual environment
python3 -m venv env
python -m virtualenv env
source env/bin/activate
Example 2: how to use virtual environment python
python3 -m venv env
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: how to use virtual environment python
source env/bin/activate
Example 5: start python virtual
activate venv