尝试在openSUSE上安装pip时出错 [英] Error when trying to install pip on openSUSE

查看:174
本文介绍了尝试在openSUSE上安装pip时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在生产服务器上部署pip,但是出现不合逻辑的错误,该错误试图安装已经安装的组件而没有成功.

I'm trying to deploy pip on my production server, but have an illogical error, where it tries to install without success a composent which is already installed.

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

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

This is unbelievable because python-2.7.2-7.17.1 is installed for the good platform (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可以使该问题静音.但是有解决这个问题的干净方法吗?

Uninstalling patterns-openSUSE-minimal_base-conflicts 12.1-25.21.1.x86_64 mutes the problem; but is there a clean way to solve that problem?

推荐答案

我有一个类似的问题,问题是我使用了错误的zypper存储库(openSuse而不是SLE SP3).

I had a similar problem and the issue was that I was using a wrong zypper repository (openSuse instead of SLE SP3).

我卸载了有问题的pip,删除了错误的存储库,添加了正确的存储库,最后再次重新安装了pip.然后它起作用了.

I uninstalled the faulty pip, removed the wrong repository, added the correct respository and finally re-installed pip again. Then it worked.

这篇关于尝试在openSUSE上安装pip时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆