virtualenv create python 3.7 code example

Example 1: create a virtual environment python 3

python3 -m venv /path/to/new/virtual/environment

Example 2: how to create environment in python3.7

# by runnin this command you can directly create python environment in with python3.7 version
python3.7 -m venv <venv_name>

Example 3: venv

python -m venv c:\path\to\myenv

Example 4: python virtualenv venv

python -m venv venv

Example 5: create a virtualenv python3

py -m venv env

Example 6: creating a virtual environment in python 3.8

c:\>python -m venv c:\path\to\myenv

Tags:

Html Example