Last active
December 15, 2019 20:11
-
-
Save cedricbonhomme/409c044d2cba8f02b545da39cd17b09b to your computer and use it in GitHub Desktop.
My Python environment for 2019
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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