Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 955 Bytes

python.md

File metadata and controls

13 lines (12 loc) · 955 Bytes

Python Commands

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