Skip to content

Instantly share code, notes, and snippets.

@jreisinger
Last active December 14, 2017 13:25
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 jreisinger/e98fd0e1a4e77efeb90940ef8a5ca226 to your computer and use it in GitHub Desktop.
Save jreisinger/e98fd0e1a4e77efeb90940ef8a5ca226 to your computer and use it in GitHub Desktop.

pyenv - mutliple pythons

curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash

# maybe put this in your ~/.bashrc...
export PATH="/home/reisinge/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

pyenv update

pyenv versions

pyenv install 3.6.3
# if you get errors you might need
sudo apt-get install zlib1g-dev libbz2-dev libreadline-dev libssl-dev

virtualenv - multiple packages

sudo pip3 install virtualenv
mkdir myproject
cd myproject/
virtualenv [--python=/usr/bin/python3.6] myvenv
. myvenv/bin/activate
pyenv local 3.6.3
deactivate 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment