Skip to content

Instantly share code, notes, and snippets.

@SumitBando
Last active November 23, 2022 16:37
Show Gist options
  • Save SumitBando/051921670f67ad6f7f9b15d181ed9773 to your computer and use it in GitHub Desktop.
Save SumitBando/051921670f67ad6f7f9b15d181ed9773 to your computer and use it in GitHub Desktop.
Install python 3.11 on Debian 5
# check current
$ python3 --version
Python 3.9.2
$ sudo apt-get install -y --no-install-recommends software-properties-common wget build-essential pkg-config zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
$ wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tar.xz
$ tar -xf Python-3.11.0.tar.xz
$ cd Python-3.11.0
$ ./configure --enable-optimizations
$ make
$ sudo make altinstall
# verify build version
$ python3.11 --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment