LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2015, 05:53 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Rep: Reputation: 29
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?

Last edited by sigint-ninja; 12-09-2015 at 05:58 PM.
 
Old 12-09-2015, 06:01 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
 
Old 12-09-2015, 06:12 PM   #3
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
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

Last edited by sigint-ninja; 12-09-2015 at 06:13 PM.
 
Old 12-09-2015, 06:36 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Download/extract the tarball and follow the included instructions (usually in README or INSTALL)? Installing from source is usually pretty straight forward.
 
Old 12-09-2015, 08:48 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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!!!!!!!!

Last edited by John VV; 12-09-2015 at 08:51 PM.
 
Old 12-09-2015, 10:40 PM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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.
 
Old 12-10-2015, 04:16 AM   #7
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
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
 
Old 12-10-2015, 05:04 AM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I got error while installing python-tk python-psycopg2 python-twisted saili kadam Linux - Newbie 1 09-05-2015 03:03 AM
I broke my yum by installing Python 2.7 on CentOS jhaprade Red Hat 3 02-02-2013 05:02 AM
Installing Python 2.7.2 and python-devel on CentOS 5.7 iwitham Linux - Software 1 03-21-2012 05:14 PM
centos broken yum after installing new python mad_penguin Linux - Newbie 2 11-17-2011 05:36 PM
Python 2.6 dependencies error installing python-sqlite2-2.5.5-1.1.i586.rpm jmp007 Linux - Newbie 1 02-11-2011 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration