Skip to content

Instantly share code, notes, and snippets.

@cedricbonhomme
Last active December 15, 2019 20:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cedricbonhomme/409c044d2cba8f02b545da39cd17b09b to your computer and use it in GitHub Desktop.
Save cedricbonhomme/409c044d2cba8f02b545da39cd17b09b to your computer and use it in GitHub Desktop.
My Python environment for 2019
# Installation of a decent editor, emacs
$ sudo apt install emacs
# Prerequisites to build Python
$ sudo apt install 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
# Installation of pyenv
$ curl https://pyenv.run | bash
# Always use the latest stable version of Python
$ pyenv install 3.7.3
$ pyenv global 3.7.3
# Installation of pipx
$ python -m pip install --user pipx
$ python -m userpath append ~/.local/bin
# Installation of pipenv
$ pipx install pipenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment