- Put contents of
virtualenv.sh
in your~.bashrc
or~.bash_profile
- Run
source ~.bashrc
orsource ~.bash_profle
to make the new commands available.
- Python 3 installed
pip3 install virtualenv
With a requirements.txt file already available, you can run the following commands to get set up quickly.
vI
- Initializes the virtualenv with python3. Avenv
folder is created. Only do this the first time.vA
- Activate the virtualenv. You'll notice (venv) prepended to your CLI prompt- All pip packages will be installed in a newly created
venv
folder. - This becomes your first step of the workflow if you've already initialized the environment.
- All pip packages will be installed in a newly created
vR
- Install from requirements file.vD
- Deactivate the virtualenv. Do this when you're done. Or just close that terminal session.
Refer to image screenshot.png for example.