LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   Installing psycopg2 in centos6 with Python 2.6 and Python2.7 installed in the machine (https://www.linuxquestions.org/questions/centos-111/installing-psycopg2-in-centos6-with-python-2-6-and-python2-7-installed-in-the-machine-4175512898/)

steves504 07-31-2014 04:10 PM

Installing psycopg2 in centos6 with Python 2.6 and Python2.7 installed in the machine
 
When i use yum install python-psycopg2 , it installs it from python2.6 instead of python2.7. Using pip install psycopg2 does the same same thing and easy_install is the same result.

Trying to import it from the python2.7 shell, i get an error showing it is not available from that version.

I need some sort of direction/assistance please.

John VV 08-01-2014 02:39 AM

this is the current centos 6.5 ?
6.5 is the ONLY one in the 6 series supported

too check
Code:

cat /etc/redhat-release
then also post the output of this
Code:

su -
yum repolist all


steves504 08-04-2014 11:18 AM

I'm currently on CentOS release 6.5

$ yum repolist all

Loading mirror speeds from cached hostfile
* base: centos.expedientevirtual.com
* epel: mirror.sfo12.us.leaseweb.net
* extras: centos.corenetworks.net
* updates: mirrors.seas.harvard.edu
repo id repo name status
C6.0-base CentOS-6.0 - Base disabled
C6.0-centosplus CentOS-6.0 - CentOSPlus disabled
C6.0-contrib CentOS-6.0 - Contrib disabled
C6.0-extras CentOS-6.0 - Extras disabled
C6.0-updates CentOS-6.0 - Updates disabled
C6.1-base CentOS-6.1 - Base disabled
C6.1-centosplus CentOS-6.1 - CentOSPlus disabled
C6.1-contrib CentOS-6.1 - Contrib disabled
C6.1-extras CentOS-6.1 - Extras disabled
C6.1-updates CentOS-6.1 - Updates disabled
C6.2-base CentOS-6.2 - Base disabled
C6.2-centosplus CentOS-6.2 - CentOSPlus disabled
C6.2-contrib CentOS-6.2 - Contrib disabled
C6.2-extras CentOS-6.2 - Extras disabled
C6.2-updates CentOS-6.2 - Updates disabled
C6.3-base CentOS-6.3 - Base disabled
C6.3-centosplus CentOS-6.3 - CentOSPlus disabled
C6.3-contrib CentOS-6.3 - Contrib disabled
C6.3-extras CentOS-6.3 - Extras disabled
C6.3-updates CentOS-6.3 - Updates disabled
C6.4-base CentOS-6.4 - Base disabled
C6.4-centosplus CentOS-6.4 - CentOSPlus disabled
C6.4-contrib CentOS-6.4 - Contrib disabled
C6.4-extras CentOS-6.4 - Extras disabled
C6.4-updates CentOS-6.4 - Updates disabled
base CentOS-6 - Base enabled: 6,352+15
c6-media CentOS-6 - Media disabled
centosplus CentOS-6 - Plus disabled
contrib CentOS-6 - Contrib disabled
debug CentOS-6 - Debuginfo disabled
epel Extra Packages for Enterprise Linux 6 - enabled: 11,051
epel-debuginfo Extra Packages for Enterprise Linux 6 - disabled
epel-source Extra Packages for Enterprise Linux 6 - disabled
epel-testing Extra Packages for Enterprise Linux 6 - disabled
epel-testing-debuginfo Extra Packages for Enterprise Linux 6 - disabled
epel-testing-source Extra Packages for Enterprise Linux 6 - disabled
extras CentOS-6 - Extras enabled: 14
updates CentOS-6 - Updates enabled: 1,229+13
repolist: 18,646


All times are GMT -5. The time now is 02:43 PM.