Skip to content

Instantly share code, notes, and snippets.

@cicorias
Last active February 19, 2019 19:41
Show Gist options
  • Save cicorias/92704261bc12cdc35a847064ed43c653 to your computer and use it in GitHub Desktop.
Save cicorias/92704261bc12cdc35a847064ed43c653 to your computer and use it in GitHub Desktop.
pyenv setup debina
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl
pyenv install 3.7.2
pyenv virtualenv 3.7.2 venv-3.7.2
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment