-
-
Save atasky/61661e90c81b22ff6b5892928c3610f6 to your computer and use it in GitHub Desktop.
Python3.9 on ubuntu22.04 Jammy
This file contains hidden or 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
| ## Install Python3.9 interpreter on ubuntu 22.04 | |
| On a terminal just do the following steps: | |
| Install dependencies: | |
| sudo apt install tar build-essential checkinstall libreadline-dev \ | |
| libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev \ | |
| libbz2-dev openssl libffi-dev | |
| Download and untar the desired version: | |
| mkdir -p $HOME/opt | |
| cd $HOME/opt | |
| curl -O https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz | |
| tar -xzf Python-3.9.9.tgz | |
| Install python3.9 while keeping python3.10 as the default python3 version on ubuntu 22.04. | |
| cd Python-3.9.9/ && | |
| ./configure --enable-shared --enable-optimizations --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib" && | |
| sudo make altinstall | |
| Check it was installed properly: | |
| >> python3.9 -V | |
| Python 3.9.9 | |
| Enjoy! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment