gpt4 book ai didi

python - 尝试在 openSUSE 上安装 pip 时出错

转载 作者:太空狗 更新时间:2023-10-30 01:34:44 25 4
gpt4 key购买 nike

我正在尝试在我的生产服务器上部署 pip,但出现了一个不合逻辑的错误,它尝试安装一个已安装的组件但没有成功。

~> sudo zypper in python-pip
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: python-pip-1.0.2-3.1.2.noarch requires python = 2.7, but this requirement cannot be provided
uninstallable providers: python-2.7.2-7.10.1.i586[Updates-for-openSUSE-12.1-12.1-1.4]
python-2.7.2-7.17.1.i586[Updates-for-openSUSE-12.1-12.1-1.4]
python-2.7.2-7.10.1.x86_64[Updates-for-openSUSE-12.1-12.1-1.4]
python-2.7.2-7.17.1.x86_64[Updates-for-openSUSE-12.1-12.1-1.4]
python-2.7.2-7.1.3.x86_64[openSUSE-12.1-12.1-1.4]
python-2.7.2-7.1.3.i586[repo-oss]
python-2.7.2-7.1.3.x86_64[repo-oss]
Solution 1: deinstallation of patterns-openSUSE-minimal_base-conflicts 12.1-25.21.1.x86_64
Solution 2: do not install python-pip-1.0.2-3.1.2.noarch
Solution 3: do not install python-pip-1.0.2-3.1.2.noarch
Solution 4: break python-pip-1.0.2-3.1.2.noarch by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/4/c] (c): c

这令人难以置信,因为 python-2.7.2-7.17.1 是为好的平台 (x86_64) 安装的

~> sudo zypper if python-base
Loading repository data...
Reading installed packages...


Information for package python-base:

Repository: Updates for openSUSE 12.1 12.1-1.4
Name: python-base
Version: 2.7.2-7.17.1
Arch: x86_64
Vendor: openSUSE
Installed: Yes
Status: up-to-date
Installed Size: 20.8 MiB
Summary: Python Interpreter base package
Description:
Python is an interpreted, object-oriented programming language, and is
often compared to Tcl, Perl, Scheme, or Java. You can find an overview
of Python in the documentation and tutorials included in the python-doc
(HTML) or python-doc-pdf (PDF) packages.

This package contains all of stand-alone Python files, minus binary
modules that would pull in extra dependencies.

卸载 patterns-openSUSE-minimal_base-conflicts 12.1-25.21.1.x86_64 解决了这个问题;但是有没有一种干净的方法来解决这个问题?

最佳答案

我遇到了类似的问题,问题是我使用了错误的 zypper 存储库(openSuse 而不是 SLE SP3)。

我卸载了有问题的 pip,删除了错误的存储库,添加了正确的存储库,最后再次重新安装了 pip。然后就成功了。

关于python - 尝试在 openSUSE 上安装 pip 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14860085/

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