Skip to content

Instantly share code, notes, and snippets.

@ricardogarfe
Created June 25, 2019 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricardogarfe/805ade99ec5a42a92cbf01dc18147b07 to your computer and use it in GitHub Desktop.
Save ricardogarfe/805ade99ec5a42a92cbf01dc18147b07 to your computer and use it in GitHub Desktop.
Steps to create Python virtual environment with selected version

Python VirtualEnv

Create Python virtual environment with selected Python version:

$ virtualenv --python=/usr/bin/python2.7 ~/virtualenvs/hello_world

Enable virtual environment:

$ source ~/virtualenvs/hello_world/bin/activate

Install dependencies:

$ pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment