为什么"pip"要求"setuptools> = 0.8"?即使我安装了2.1? [英] Why does 'pip' require "setuptools >= 0.8" even though I have 2.1 installed?

查看:111
本文介绍了为什么"pip"要求"setuptools> = 0.8"?即使我安装了2.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用pip 某些命令时,我收到一条错误消息,指出pip

When I attempt certain commands with pip, I get an error message stating that pip

"requires setuptools >= 0.8 for dist-info"

即使根据yolk -l(以及pip list)的说明,我已经安装了更高版本的setuptools:

even though I have, according to yolk -l (as well as pip list), a much higher version of setuptools installed:

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

为什么pip要求setuptools> = 0.8的版本?是不是2.1> 0.8?还是我的安装实际上不是yolk报告的版本?我需要做些事情来确保我确实拥有"setuptools> = 0.8"吗?

Why is pip asking for a version of setuptools >= 0.8? Isn't 2.1 > 0.8; or is my installation not in fact at the version that yolk is reporting? Is there something I need to do to ensure that I in fact do have "setuptools >= 0.8"?

推荐答案

您可能已经安装了多个setuptools.如果有指向较低版本pip的链接,则会看到该链接. 例如,python通常同时出现在usr/bin和usr/local/bin上,我遇到了类似的版本问题,并将其重命名为usr/local/bin.如果是这种情况,则应找出已安装的版本,然后重命名/删除较低的版本.

You may have more than one setuptools installed. If there is a link to lower version pip would see that one. 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. if this is the case you should find out which versions are installed and rename/remove the lower version.

这篇关于为什么"pip"要求"setuptools> = 0.8"?即使我安装了2.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆