ubuntu 14.04 安装 pip出现包依赖问题(This may mean that you have requested an impossible situation or ifyou ar

前端之家收集整理的这篇文章主要介绍了ubuntu 14.04 安装 pip出现包依赖问题(This may mean that you have requested an impossible situation or ifyou ar前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

ubuntu 14.04 安装 pip 出现包依赖问题(This may mean that you have requested an impossible situation or ifyou are using the unstable distribution that some required packages have notyet been created or been moved out of Incoming)

1.错误描述:

@H_502_10@Some packages could not be installed. This may meanthat you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python-pip : Depends: python-pip-whl (= 1.5.4-1ubuntu4) but it is notgoing to be installed
Recommends: build-essential but it is not going to be installed
Recommends: python-dev-all (>= 2.6) but it is not installable
Recommends: python-wheel but it is not installable

@H_502_10@E: Unable to correctproblems,you have held broken packages.

@H_502_10@

2.解决方法

我试了aptitude,但是没能解决,于是直接用Python命令安装pip,而不是用apt-get安装。

1.去 https://pip.pypa.io/en/stable/installing/#using-linux-package-managers

@H_502_10@下载 get-pip.py

@H_502_10@2.在放有get-pip.py的目录下打开终端,输入

@H_502_10@sudo python get-pip.py

@H_502_10@然后应该就可以安装完成了。然后试试命令 pip --version看看是否安装成功。

@H_502_10@参考https://pip.pypa.io/en/stable/installing/#using-linux-package-managers

@H_502_10@

@H_502_10@Installation

@H_502_10@Do I need to install pip?

@H_502_10@pip is alreadyinstalled if you're using Python 2 >=2.7.9 or Python 3 >=3.4binariesdownloaded frompython.org,but you'llneedtoupgrade pip.

@H_502_10@Additionally,pipwill already be installed if you're working in aVirtualEnvironmentcreated byvirtualenvorpyvenv.

@H_502_10@Installing with get-pip.py

@H_502_10@To install pip,securely downloadget-pip.py.[2]

@H_502_10@Then run the following:

@H_502_10@python get-pip.py

@H_502_10@Warning

@H_502_10@Be cautIoUs if you'reusing a Python install that's managed by your operatingsystem or anotherpackage manager. get-pip.py does not coordinate withthose tools,and may leaveyour system in an inconsistent state.

原文链接:https://www.f2er.com/ubuntu/353473.html

猜你在找的Ubuntu相关文章