Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
15879 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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!!!

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Epel is already in the source list :

yum repolist

repo id             repo name 

epel                Extra Packages for Enterprise Linux 6 - x86_64

Fahmi

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

It should satisfy requirements

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 5 15
4119
0
thg 3 15
4488
2
thg 2 17
6933
0
thg 3 25
1512
4
thg 4 24
174368