linux virtual environment code example
Example 1: virtual env create python
sudo apt-get install python3.6-venv
python3 -m venv env
source env/bin/activate
py -m pip install --user virtualenv
py -m venv env
.\env\Scripts\activate
Example 2: linux create virtualenv
sudo pip3 install virtualenv
virtualenv venv
virtualenv -p python3 venv
virtualenv -p /usr/bin/python2.7
source venv/bin/activate
deactivate
Example 3: how to create a virtual environment in python
source env/bin/activate
Example 4: activate venv linux
env/bin/activate
Example 5: python virtual env
$ pip install --user pipenv
Example 6: how to workon virtual environment in linux
<env name>\bin\activate