2015-10-05 47 views
4

我想安装一个使用pip的python库,它告诉我它需要setuptools,然后我尝试安装setuptools,尽管一切似乎都成功了,但它不能识别它已安装。任何想法,我可能会在这里失踪?为什么setuptools安装但仍无法识别?

$ sudo pip install gmusicapi 
Downloading/unpacking gmusicapi 
    Downloading gmusicapi-7.0.0.tar.gz (147kB): 147kB downloaded 
Cleaning up... 
setuptools must be installed to install from a source distribution 
Storing debug log for failure in /Users/.../Library/Logs/pip.log 
$ sudo pip install setuptools 
Downloading/unpacking setuptools 
    Downloading setuptools-18.3.2-py2.py3-none-any.whl (462kB): 462kB downloaded 
Installing collected packages: setuptools 
Successfully installed setuptools 
Cleaning up... 
$ sudo pip install gmusicapi 
Downloading/unpacking gmusicapi 
    Downloading gmusicapi-7.0.0.tar.gz (147kB): 147kB downloaded 
Cleaning up... 
setuptools must be installed to install from a source distribution 
Storing debug log for failure in /Users/..../Library/Logs/pip.log 

回答

0

这很奇怪。当安装gmusicapi而没有安装setuptools时,我能够重现您的第一个错误。但是,安装setuptoolssetuptools-18.4-py2.py3-none-any.whl)后,我能够成功安装gmusicapi。

你可以尝试:

  • 在新的虚拟环境中安装gmusicapi
  • 卸载setuptoolspip uninstall setuptools - 进来的情况下,你可能需要卸载包好几次,重复,直到你看到的信息,即setuptools的包未安装),并重新安装

编辑:

我也试过setuptools==18.3.2,它也适用于我。

相关问题