2013-02-13 104 views
5

我試圖在我的生產服務器上部署pip,但出現不合邏輯錯誤,嘗試安裝時未成功安裝已安裝的組件。嘗試在openSUSE上安裝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靜音的問題;但是有沒有一種乾淨的方法來解決這個問題?

+0

我認爲需要收集更多數據並進行故障排除。你需要排除的第一件事是這是否發生在一個乾淨的圖像上。一旦你確定了它是否發生在一臺乾淨的機器上,我會有興趣看看你在兩個盒子之間是否使用不同的回購。請收集更多信息給我們繼續,目前這還不夠數據。 – Forrest 2013-02-15 04:38:11

+0

奇怪。我在安裝netInstall映像時遇到了與OpenSuse 13.2(amd64)相同的問題。 – brejoc 2015-02-21 21:40:17

回答

1

我有一個類似的問題,問題是我使用了一個錯誤的zypper存儲庫(openSuse而不是SLE SP3)。

我卸載了錯誤的pip,刪除了錯誤的存儲庫,添加了正確的存儲庫並最終重新安裝了pip。然後它工作。