Why is setuptools installed but still not recognized?

I am trying to install the python library using pip and it tells me that it needs setuptools, so I am trying to install setuptools and although everything seems to be successful, it does not recognize that it is installed. Any idea what I'm missing here?

$ 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
+4
source share
1 answer

It is very strange. I was able to reproduce your first error when installing gmusicapiwithout installing setuptools. However, after installing setuptools( setuptools-18.4-py2.py3-none-any.whl), I was able to successfully install gmusicapi.

You may try:

  • install gmusicapiin a new virtual environment
  • uninstall setuptools (pip uninstall setuptools - , , , , setuptools )

Edit:

setuptools==18.3.2, .

0

Source: https://habr.com/ru/post/1610214/


All Articles