python enable virtual environment code example

Example 1: creating virtual environment python

python3 -m venv tutorial-env
#name : tutorial-env
tutorial-env\Scripts\activate 	#activate env
deactivate #deactivate env

Example 2: how to use virtual environment python

python3 -m venv env

Example 3: how to make a virtual environment in python

py -m venv env

Example 4: how to use virtual environment python

python3 -m pip install --user virtualenv

Example 5: how to create a virtual environment in python

source env/bin/activate

Example 6: how to make a virtual environment in python

.\env\Scripts\activate

Tags: