Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5 ตอบกลับ
15889 มุมมอง

Hello,

On CentOS 6.5 Linux, Python 2.7.9 already installed, the installation process via yum reports that

odoo-8.0_20150407-1.noarch requires python(abi) = 2.7

I found that there is two python installed, one installed by default at /usr/bin/python which is Python 2.6.6 and the one I installed in /usr/local/bin/python2.7 and there is a links as

lrwxrwxrwx. 1 root root       7  6 avril 14:46 /usr/local/bin/python -> python2
lrwxrwxrwx. 1 root root       9  6 avril 14:46 /usr/local/bin/python2 -> python2.7
so

$ python --version
Python 2.7.9

So, how to tell yum NOT to use /usr/bin/python ?

Epel is already in the source list :

yum repolist

repo id             repo name 

epel                Extra Packages for Enterprise Linux 6 - x86_64

 

Thanks

Fahmi

อวตาร
ละทิ้ง

is there "update-alternatives" command (or equivalent) available in your centos? maybe you've to set python2.7 as active/default

คำตอบที่ดีที่สุด

Hi All,
Anyone has solution for this problem? I have the same error of require for python (abi) =2.7.
I have installed:

 >>python --version

Python 2.7.9

>>which python

alias python='/usr/local/bin/python2.7'  

/usr/local/bin/python2.7

Thank you for any suggestions!!!

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Epel is already in the source list :

yum repolist

repo id             repo name 

epel                Extra Packages for Enterprise Linux 6 - x86_64

Fahmi

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I think you need to add EPEL as repository in your CentOS repository source list

อวตาร
ละทิ้ง

It should satisfy requirements

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
พ.ค. 15
4125
0
มี.ค. 15
4491
Error when Install Odoo 9 on CENTOS 6.8 แก้ไขแล้ว
2
ก.พ. 17
6942
0
มี.ค. 25
1519
4
เม.ย. 24
174384