Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1** Install Dependencies:
- sudo apt-get update && sudo apt-get install make build-essential libssl-dev \
- zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
- libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
- 2** Install Pyenv:
- curl https://pyenv.run | bash
- 3** Config ~/.profile (copy and paste):
- # Load pyenv automatically by appending
- # the following to
- # ~/.bash_profile if it exists, otherwise ~/.profile (for login shells)
- # and ~/.bashrc (for interactive shells) :
- export PYENV_ROOT="$HOME/.pyenv"
- [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
- eval "$(pyenv init -)"
- 4** config ~/.bashrc (copy and paste):
- eval "$(pyenv virtualenv-init -)"
- 5** reload enviroment:pyenv install
- source ~/.bashrcpyenv install
- 6** Install python version 2.7:
- pyenv install 2.7
- 7** create an venv over python version 2.7 (without < >)
- pyenv virtualenv 2.7 <virtual_env_name>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement