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

痴心易碎 提交于 2020-01-01 16:51:07

问题


When I attempt certain commands with pip, I get an error message stating that 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:

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

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"?


回答1:


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.



来源:https://stackoverflow.com/questions/21063614/why-does-pip-require-setuptools-0-8-even-though-i-have-2-1-installed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!