Activate and Deactivate Your Virtual Environment

All commands you need to remember for the creation, activation, and deactivation of Virtual Environment on mac

pip3 install virtualenv
pip3 install virtualenv
cd /Users/maryammehboob/VirtualEnv
mkdir dir_name
virtualenv  dir_name
command not found: virtualenv
python3 /Users/maryammehboob/Library/Python/3.8/lib/python/site-packages/virtualenv dir_name
cd dir_name
source bin/activate
which python

Create requirenment.txt file in your VE:

pip freeze > requirements.txt
pip install -r requirements.txt

Create your new python file in VE folder:


Ph.D. in procrastination.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store