Install Python 2.7

Issues related to applications and software problems
kbocek
Posts: 220
Joined: 2005/05/30 15:40:15
Location: Benicia CA, USA

Install Python 2.7

Postby kbocek » 2017/10/27 17:54:32

I'm seeing all kinds of conflicting info on getting Python 2.7 installed on CentOS 6. I've installed all the 2.7 packages from centos-sclo-rh. Now how do I enable them?

User avatar
TrevorH
Forum Moderator
Posts: 21206
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Install Python 2.7

Postby TrevorH » 2017/10/27 19:27:25

Using the scl command
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

kbocek
Posts: 220
Joined: 2005/05/30 15:40:15
Location: Benicia CA, USA

Re: Install Python 2.7

Postby kbocek » 2017/10/28 13:25:23

TrevorH wrote:Using the scl command


Thanks.

kbocek
Posts: 220
Joined: 2005/05/30 15:40:15
Location: Benicia CA, USA

Re: Install Python 2.7

Postby kbocek » 2017/10/31 17:34:06

Now that I've reacquainted myself with SCL, how do I install Protobuf under Python27?

I've tried compiling and installing the source.
I've tried installing the RPM that's available.
I've tried 'pip install' on this source: https://pypi.python.org/pypi/protobuf/2.6.1

Does anyone have any idea how to get protobuf installed in /opt/rh/python27?

kbocek
Posts: 220
Joined: 2005/05/30 15:40:15
Location: Benicia CA, USA

Re: Install Python 2.7

Postby kbocek » 2017/10/31 18:27:41

I think I have that fixed. Now how about qt4. It's installed and working under the default Python 2.6. How do I get it installed under 2.7?

pip install PyQt
pip install PyQt4

do not work.

kbocek
Posts: 220
Joined: 2005/05/30 15:40:15
Location: Benicia CA, USA

Re: Install Python 2.7

Postby kbocek » 2017/10/31 18:40:36

Well no I don't have this working. As root I get:

Error: Could not import PyQt4 on Linux systems, you may try 'sudo apt-get install python-qt4'

As a regular user I still get errors for protobuf.