LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing python 3.2.2 on centos 7 (https://www.linuxquestions.org/questions/linux-newbie-8/installing-python-3-2-2-on-centos-7-a-4175561087/)

sigint-ninja 12-09-2015 05:53 PM

Installing python 3.2.2 on centos 7
 
hi guys,

i specifically want to install 32 bit python 3.2.2 as it was recommended to me by another user on my centos 7 box...i have been googling but only found a post for rhel 6...so i didnt follow the instructions...thought i would check here first...

do i have to download the source...i found it here:
https://www.python.org/download/releases/3.2.2/

and compile it myself...i hope so...never done that :-)

any ideas of what/where i should try/go?

suicidaleggroll 12-09-2015 06:01 PM

Be VERY CAREFUL installing a non-default version of python on RHEL/CentOS!!!!

Yum uses python, if you replace the default version you could permanently kill yum, which means you will be cut off from all repos, updates, installation, etc. If you want to install a non-default version of python, you MUST choose a custom installation location, do NOT let it replace the default version.

sigint-ninja 12-09-2015 06:12 PM

thanks for that advice...will follow

also...could you not just install the default version again...are you saying you would potentially have to reinstall your whole OS???

anything else you can add?...please

suicidaleggroll 12-09-2015 06:36 PM

Download/extract the tarball and follow the included instructions (usually in README or INSTALL)? Installing from source is usually pretty straight forward.

John VV 12-09-2015 08:48 PM

WARNING !!!!!!!


to REPEAT!!!!!!!!
Quote:

Be VERY CAREFUL installing a non-default version of python on RHEL/CentOS!!!!

yum DEPENDS!!!!!!!! on the default version of Python


Now a second version can be installed in a side -by- side

BUT
you will need to use a NON!!!! standard install location and change the program name!!!!
see:
Code:

./configure --help
for the "--program-suffix=SUFFIX" and "--prefix=????" options


Warning:
use EXTREME CAUTION!!!!!!!!

berndbausch 12-09-2015 10:40 PM

How to install both Python 2 and 3 on Centos 6: http://toomuchdata.com/2014/02/16/ho...hon-on-centos/

I guess these instructions can be transferred to your use case, but perhaps you should set up a non-Centos virtual machine and use that for your development and testing.

sigint-ninja 12-10-2015 04:16 AM

hi berndbausch

is this just a centos problem or a general linux problem
am i better off installing debian slackware or something else to tinker with python?

thanks

berndbausch 12-10-2015 05:04 AM

I don't know if there are system tools in Debian that require a certain python version. Slackware should be safe though.


All times are GMT -5. The time now is 08:55 AM.