Python - Virtualenv

  • Install: python -m pip install --user virtualenv
  • Create env: python -m venv env. (Replace venv with virtualenv for python2.)
  • Start: source env/bin/activate
  • Check Python: which python
  • Run pip: pip install -r requirements.txt
  • Resolve dependencies: pip install .. (Avoid calling setup.py directly.)
  • Close: deactivate