为什么安装工具仍无法识别?

2024-05-19 08:58:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用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

Tags: installpipinstalledloggmusicapisudotarsetuptools
1条回答
网友
1楼 · 发布于 2024-05-19 08:58:47

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

你可以试试:

  • 在新的虚拟环境中安装gmusicapi
  • 卸载setuptoolspip uninstall setuptools-在以后的情况下,您可能需要多次卸载软件包,重复此操作,直到您看到未安装setuptools软件包的消息),然后再次安装它

编辑:

我也用setuptools==18.3.2试过了,它也对我有用。在

相关问题 更多 >

    热门问题