- Put contents of
virtualenv.shin your~.bashrcor~.bash_profile - Run
source ~.bashrcorsource ~.bash_profleto 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. Avenvfolder 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
venvfolder. - 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.
