2016-12-06 140 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