Reputation: 11474
I am currently working on Python 2.6.5 and I would like to upgrade to Python 2.6.6.
Is there a way I can do so?
Upvotes: 11
Views: 36592
Reputation: 1
Download your python version from https://www.python.org/downloads/
Open a terminal
tar -xzf python3.12.7.tgz
cd Python-3.12.7
Install dependencies
sudo apt update
sudo apt install build-essential libssl-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git
Run the configuration script
./configure --enable-optimizations --prefix=/usr
Run
make -j $(nproc)
sudo make altinstall
Verify the installation
Check that Python 3.12.7 is installed correctly:
/usr/bin/python3.12 --version
Upvotes: -1
Reputation: 1471
In Linux:
https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz
)wget "https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz"
tar -zxvf Python-3.8.3.tgz
to extract Pythoncd
into the directory where Python has been extracted to./configure
make
make install
python --version
to check that the installation was successfulPython should now be installed at the desired version.
Upvotes: 10
Reputation: 70065
Download the appropriate installer (or, if they don't have one for your OS, source code) from http://www.python.org/download/releases/2.6.6/. Instructions from there will depend on your operating system, but I'm guessing you can handle it. (Plus, they have install instructions.)
Upvotes: 5