Install Python 2.7

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

Install Python 2.7

Post by 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
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Install Python 2.7

Post by TrevorH » 2017/10/27 19:27:25

Using the scl command
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

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

Re: Install Python 2.7

Post by kbocek » 2017/10/28 13:25:23

TrevorH wrote:Using the scl command
Thanks.

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

Re: Install Python 2.7

Post by 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: 242
Joined: 2005/05/30 15:40:15
Location: Benicia CA, USA

Re: Install Python 2.7

Post by 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: 242
Joined: 2005/05/30 15:40:15
Location: Benicia CA, USA

Re: Install Python 2.7

Post by 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.

Post Reply