2016-12-06 83 views
0

讓我先說我有限的經驗與Linux和這非常好可能是一個容易回答的問題開始。Python3-PIP安裝問題破包

我的困境是,我試圖通過終端 sudo易於得到安裝在進入此命令我收到錯誤 此消息python3-PIP 下列軟件包有未滿足的依賴安裝掛斷: python3-PIP:要看:蟒蛇-PIP-WHL(= 8.1.2-2ubuntu0.1),但8.1.2-3是要安裝 E:無法糾正問題,您已持有破包。

之前它建議安裝setuptools,dev和whl,以及同樣的錯誤信息,但我能夠通過搜索多個線程來補救,從那一點捎帶,我做了一個堅實的兩個對這個主題進行三個小時的研究,在不同的網站上搜索主題,但似乎沒有任何工作。如果任何人有任何建議,請附和。

*我運行的是最新的Kubuntu版本順便說一句,如果是佔什麼。

在此先感謝。

+0

你是否檢查過'dpkg --get-selections | grep hold'? –

+0

我沒有,我究竟是怎麼執行命令的? dpkg - 獲取選擇| grep舉行? –

回答

0

Ubuntu 12.10+和Fedora 13+有一個名爲python3-pip的軟件包,它將安裝pip-3.2(或更新版本的pip-3.3,pip-3.4或pip3),而不需要跳過這個循環。

我碰到這個固定這個不需要的wget的喜歡或virtualenvs(假設的Ubuntu 12.04):

Install package python3-setuptools: run sudo aptitude install python3-setuptools, this will give you the command easy_install3. 
Install pip using Python 3's setuptools: run sudo easy_install3 pip, this will give you the command pip-3.2 like kev's solution. 
Install your PyPI packages: run sudo pip-3.2 install <package> (installing python packages into your base system requires root, of course). 
… 
Profit! 

很肯定這爲我做

信貸akaIDIOT

0

試這個:

sudo apt-get install curl 
    curl https://bootstrap.pypa.io/get-pip.py | sudo python3 
+0

雖然這個代碼片斷可以解決的問題,[包括說明](http://meta.stackexchange.com/questions/114762/explaining-entirely-code-based-answers)確實有助於提高您的文章質量。請記住,您將來會爲讀者回答問題,而這些人可能不知道您的代碼建議的原因。 – Isma