Skip to content

Instantly share code, notes, and snippets.

@tstellanova
Last active June 2, 2020 16:27
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 tstellanova/7100e7aaf2b54989946df9d0b0da4c8d to your computer and use it in GitHub Desktop.
Save tstellanova/7100e7aaf2b54989946df9d0b0da4c8d to your computer and use it in GitHub Desktop.
Setup python environment for debian 2020
  • Install pyenv
    • Install dependencies:
    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
    
    • Install pyenv:
    curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
    export PATH="$HOME/.pyenv/bin:$PATH"
    
    • Add the following to eg ~/.bashrc:
    export PATH="/home/todd/.pyenv/bin:$PATH"
    eval "$(pyenv init -)"
    eval "$(pyenv virtualenv-init -)"
    
  • Install poetry:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment