python-pip : Depends: python-setuptools (>= 0.6c1) 问题

简介:

安装apt-get install python-pip 遇到以下问题。


root@saltstackminion:~# apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that 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-setuptools (>= 0.6c1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

解决办法:

First remove the python-pkg-resources completely using

 sudo apt-get purge python-pkg-resources

Once completed successfully, first  run

  sudo apt-get -f install

then

   sudo apt-get install python-pip

   本文转自luojinghappy 51CTO博客,原文链接:http://blog.51cto.com/luojinghappy/1629661,如需转载请自行联系原作者

相关文章
|
4月前
|
人工智能 JSON 测试技术
软件测试/人工智能|Python Pip 常用命令大全
软件测试/人工智能|Python Pip 常用命令大全
38 0
|
5月前
|
Linux Python
linux 安装 pip2 kali debian python python2
linux 安装 pip2 kali debian python python2
57 0
|
6月前
|
Ubuntu Python
百度搜索:蓝易云【如何在 Ubuntu 22.04 上安装 Python Pip?】
现在,你已经成功在Ubuntu 22.04上安装了Python Pip。你可以使用pip来安装Python包和库,并管理Python项目的依赖项。注意,使用 `pip3`命令来代替 `pip`命令,以确保使用的是Python 3的pip版本。
239 0
|
7月前
|
Python
Python3,选择Python自动安装第三方库,从此跟pip说拜拜!!
Python3,选择Python自动安装第三方库,从此跟pip说拜拜!!
144 0
|
7月前
|
Linux Shell Python
python第三方库 pip install速度慢的解决办法
python第三方库 pip install速度慢的解决办法
207 0
|
5月前
|
Python
Python pip : 无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称
Python pip : 无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称
255 0
|
2月前
|
安全 iOS开发 MacOS
|
6月前
|
Ubuntu Python
百度搜索:蓝易云【如何在 Ubuntu 22.04 上安装 Python Pip?】
现在你已经成功在 Ubuntu 22.04 上安装了 Python Pip。你可以使用 Pip 来安装各种 Python 包和库,以满足你的开发需求。
219 1
|
2月前
|
开发者 Python
解码pip:Python项目依赖的得力助手
解码pip:Python项目依赖的得力助手
51 0
|
2月前
|
Python
【Python指南 | 第一篇】Python环境配置及pip安装教程
【Python指南 | 第一篇】Python环境配置及pip安装教程
47 1