简体   繁体   English

为什么'pip'需要“setuptools> = 0.8”,即使我安装了2.1?

[英]Why does 'pip' require “setuptools >= 0.8” even though I have 2.1 installed?

When I attempt certain commands with pip , I get an error message stating that pip 当我用pip尝试某些命令时,我收到一条说明pip的错误消息

“requires setuptools >= 0.8 for dist-info”

even though I have, according to yolk -l (as well as pip list ), a much higher version of setuptools installed: 根据yolk -l (以及pip list ),即使我已经安装了更高版本的setuptools

pip             - 1.5          - active 
...
setuptools      - 2.1          - active

Why is pip asking for a version of setuptools >= 0.8? 为什么pip要求setuptools的版本> = 0.8? Isn't 2.1 > 0.8; 不是2.1> 0.8; or is my installation not in fact at the version that yolk is reporting? 或者我的安装实际上不是在yolk报告的版本中? Is there something I need to do to ensure that I in fact do have "setuptools >= 0.8"? 有什么我需要做的,以确保我确实有“setuptools> = 0.8”?

You may have more than one setuptools installed. 您可能安装了多个setuptools。 If there is a link to lower version pip would see that one. 如果有一个链接到较低版本pip将看到一个。 For example python usually appears on both usr/bin and usr/local/bin, I had a similar version problem and renamed the one in usr/local/bin. 例如,python通常出现在usr / bin和usr / local / bin上,我有类似的版本问题,并在usr / local / bin中重命名。 if this is the case you should find out which versions are installed and rename/remove the lower version. 如果是这种情况,您应该找出安装的版本并重命名/删除较低版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么即使我安装了 setuptools,`pip install -e` 也会给我一个“没有名为 'setuptools' 的模块”错误? - Why does `pip install -e` give me a "no module named 'setuptools'" error even though I have setuptools installed? 为什么即使安装了`pip`也找不到? - Why is `pip` not found even though it is installed? ModuleNotFoundError 即使我已经用 pip 安装了它 - ModuleNotFoundError even though I already installed it with pip 没有名为“setuptools”的模块,即使该模块已安装 - No module named 'setuptools', even though the module is installed 即使我已经使用pip Linux Mint Sarah成功安装了BeautifulSoup4,它也无法正常工作 - BeautifulSoup4 is not working even though I have successfully installed it using pip Linux Mint Sarah 无法导入 selenium,即使我在 vscode 中安装了 python 和 pip - not able to import selenium, even though I have python and pip installed in vscode 即使安装了pip,也找不到pip [3]命令 - pip[3] command not found even though pip is installed Pip 即使我下载了 python 也显示未安装? - Pip showing up an not installed even though I downloaded python? 即使我安装了 pip,Matplotlib 也无法在 python 中工作 - Matplotlib won't work in python even though i pip installed it 为什么即使在我通过 pip 安装了模块后,还是会收到“没有名为 scipy 的模块”错误? - Why do I receive a “no module named scipy” error even after I have installed the module via pip?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM