Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 6199  / 3 Years ago, tue, september 14, 2021, 7:41:17

I am running Xubuntu 13.10 i386 with the python (2.7) and python3 (3.3) packages installed. I have downloaded and compiled the source code for Python 3.4 but the binary file is named python. How can I install it as python34? Do I change the name of the binary file and do sudo make install?


More From » compiling

 Answers
5

Install primary versions of python with:



    sudo make install


and install secondary versions with:



    sudo make altinstall


For example, I do not have any Python installations on my system and I want to install 3 versions: 2.7, 3.3 and 3.4. I want to make 2.7 the primary installation (as python) and all the others as secondary (as python3.3 and python3.4) installations. I would install the primary with:



    sudo make install


and install both the other versions with:



    sudo make altinstall


The produced programs would be python (2.7), python3.3 (3.3) and python3.4 (3.4)



Information from README file in the Python 3.4 source code directory.


[#26302] Thursday, September 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cretanol

Total Points: 320
Total Questions: 99
Total Answers: 115

Location: Australia
Member since Sat, May 27, 2023
1 Year ago
cretanol questions
Fri, Dec 2, 22, 13:30, 1 Year ago
Thu, Dec 8, 22, 03:00, 1 Year ago
Mon, Aug 1, 22, 03:21, 2 Years ago
Fri, Sep 24, 21, 16:28, 3 Years ago
Sun, Apr 24, 22, 06:37, 2 Years ago
;