Professional Documents
Culture Documents
Python Virtual Environments
Python Virtual Environments
virtualenvwrapper
$source .bashrc
● workon
● deactivate
● mkvirtualenv
● cdvirtualenv
● rmvirtualenv
(my-new-project) $
This will create and activate a new environment in the directory located at
(my-new-project) $ deactivate
1
If you have multiple environments, you can list them all with the workon function:
$ workon
My-new-project
My-dash-project
Web-scraper
$ workon My-dash-project
(My-dash-project) $
Reference: https://realpython.com/python-virtual-environments-a-primer/