env create python 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: create a venv
python -m venv venv
venv\Scripts\activate.bat
Example 3: pip install virtualenv windows
py -m pip install --user virtualenv
Example 4: python createvirtual env
python3 -m venv tutorial-env
Example 5: how to make virtual environment
virtualenv mypython
Example 6: activate venv in python
(tutorial-env) $ python -m pip install requests==2.6.0
Collecting requests==2.6.0
Using cached requests-2.6.0-py2.py3-none-any.whl
Installing collected packages: requests
Successfully installed requests-2.6.0