gpt4 book ai didi

python - 无法安装 pip centos 6.7

转载 作者:行者123 更新时间:2023-12-04 19:44:42 24 4
gpt4 key购买 nike

我尝试在我的 centos 6.7 计算机上安装 pip,但遇到以下问题。

所以看起来我有错误的python版本。但是如果我用 python --version 检查我会发现我有 2.7 版。所以我该怎么做?????

亲切的问候,
安德斯

[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

最佳答案

根据this source
我认为您可能需要启用 PyPA Copr Repo在 CentOS/Fedora 上安装 pip 之前

关于python - 无法安装 pip centos 6.7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35560331/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com