- CNTL + Z (terminate the python shell)
brew install pipenv
(installs pipenv, something roughly equivalent to npm for node)python
(opens>>>
prompt to execute python commands)curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
(downloads pip package manager for python)python get-pip.py
(runs pip you just download in above step)python -m venv env
(creates a virtual environment inside of whatever folder you start it in, python 3)source env/bin/activate
(activates your virtual environment)deactivate
(stops your virtual environment)pip install virtualenvwrapper
(gives you another set of virtual environment tools to work with)mkvirtualenv your-environment-here
(if usingvirtualenvwrapper
, this starts up)workon your-environment-here
(takes your environment and makes the virtual one for you - make sure you're in the right folder)