我试图用pip安装一个python库,它告诉我它需要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
这很奇怪。在没有安装
setuptools
的情况下安装gmusicapi
时,我能够重现您的第一个错误。但是,在安装了setuptools
(setuptools-18.4-py2.py3-none-any.whl
)之后,我能够成功地安装gmusicapi。在你可以试试:
gmusicapi
setuptools
(pip uninstall setuptools
-在以后的情况下,您可能需要多次卸载软件包,重复此操作,直到您看到未安装setuptools软件包的消息),然后再次安装它编辑:
我也用
setuptools==18.3.2
试过了,它也对我有用。在相关问题 更多 >
编程相关推荐