[英]Cannot install pip centos 6.7
I try to install pip on my centos 6.7 computer but run into the issue below. 我尝试在centos 6.7计算机上安装pip,但遇到以下问题。
So it seems like I have the wrong version of python. 所以看来我有错误的python版本。 But if I check with python --version I get that I have version 2.7.
但是,如果我使用python --version进行检查,则会得到版本2.7。 So what should I do?????
所以我该怎么做?????
Kind regards, Anders 亲切的问候,安德斯
[epic@localhost opt]$ sudo yum install -y python-pip
[sudo] password for epic:
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was
14: Peer cert cannot be verified or peer cert invalid
* base: ftp.lysator.liu.se
* epel: ftp.uni-bayreuth.de
* extras: ftp.lysator.liu.se
* nux-dextop: li.nux.ro
* updates: ftp.lysator.liu.se
Resolving Dependencies
--> Running transaction check
---> Package python-pip.noarch 0:7.1.0-1.el6 will be installed
--> Processing Dependency: python-setuptools for package: python-pip-7.1.0-1.el6.noarch
--> Running transaction check
---> Package python-setuptools.noarch 0:0.6.49-1.el7.nux will be installed
--> Processing Dependency: python(abi) = 2.7 for package: python-setuptools-0.6.49-1.el7.nux.noarch
--> Finished Dependency Resolution
Error: Package: python-setuptools-0.6.49-1.el7.nux.noarch (nux-dextop)
Requires: python(abi) = 2.7
Installed: python-2.6.6-64.el6.x86_64 (@base/$releasever)
python(abi) = 2.6
Available: python3-3.3.2-12.el7.nux.x86_64 (nux-dextop)
python(abi) = 3.3
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
根据此消息来源,我认为您可能需要在CentOS / Fedora上安装pip之前启用PyPA Copr Repo
work around: 解决:
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python get-pip.py
$ pip -V
pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.