Setting up Python.
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$ exec $SHELL
pyenv install 3.5.2
Install pyenv
1. Download
curl -L https://raw.github.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
2. Setup environment variables and initialiaze in your profile.
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
3. Restart your shell.
4. Install your choice of python
5. Set as the current (global) version of python
pyenv global 3.5.2
pyenv global 3.5.2
6. Install the virtual environment plugin
pyenv-virtualenv
7. create a virtual environment
7. create a virtual environment
pyenv virtualenv protovima
8. Activate it.
pyenv virtualenv protovima
NOTE With python 3.5 you should install:
sudo apt-get install curl git-core gcc make zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev libssl-dev