Skip to content

Instantly share code, notes, and snippets.

@ancs21
Last active August 7, 2023 13:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ancs21/c1e8f2741e221f9aebb52beaf5a4f2fd to your computer and use it in GitHub Desktop.
Save ancs21/c1e8f2741e221f9aebb52beaf5a4f2fd to your computer and use it in GitHub Desktop.
Install Python 3.11.4 on Ubuntu 20.4
# install dependency
sudo apt-get install -y lzma liblzma-dev libreadline-dev libsqlite3-dev libffi-dev libpq-dev
# install pyenv
curl https://pyenv.run | bash
# post-script
# add output from shell
# install python 3.11.4
pyenv install 3.11.4
# active
pyenv global 3.11.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment