Sunday, May 5, 2024
205
rated 0 times [  205] [ 0]  / answers: 1 / hits: 802883  / 2 Years ago, wed, february 9, 2022, 11:12:13

I want to install the latest Python tarball on Ubuntu, downloaded from http://python.org/download/.



Is this is a correct way to install?



./configure
make
make install


If not, how do I do that?


More From » software-installation

 Answers
4

First, install some dependencies:



sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev


Then download using the following command:



version=2.7.13
cd ~/Downloads/
wget https://www.python.org/ftp/python/$version/Python-$version.tgz


Extract and go to the directory:



tar -xvf Python-$version.tgz
cd Python-$version


Now, install using the command you just tried, using checkinstall instead to make it easier to uninstall if needed:



./configure
make
sudo checkinstall


Change version to whichever version you need (version=2.7.1 or version=3.6.0, for example).


[#40550] Wednesday, February 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zzlingots

Total Points: 414
Total Questions: 130
Total Answers: 117

Location: Sudan
Member since Tue, Sep 15, 2020
4 Years ago
;