Install, activate, and deactivate python virtual environments on windows

To install python virtual environment(virtualenv) on windows, open cmd, and run
pip install virtualenv
After completion of the above command, virtual environment will be installed on your computer.
To create a virtual environment, run
virtualenv env_name
To activate virtual environment, run
env_name\Scripts\activate
To deactivate virtual environment, run
deactivate
For better understanding, you can watch this video:
Thanks for reading!

Comments