[英]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.