Setting up Python virtual environments

  • sudo pip install virtualenv
  • virtualenv venv
  • virtulenv -p /usr/bin/python2.7 venv (If required to use python of your choice)
  • source venv/bin/activate
  • deactivate (To deactivate)
Advertisements