2015-10-05 48 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,它也適用於我。

相關問題