Open
Description
After creating a venv in my directory I tried to install all the project dependencies and recive this mensage from my shell:
$ pip3 install -r handson-ml2/requirements.txt
Collecting jupyter~=1.0.0 (from -r handson-ml2/requirements.txt (line 7))
Using cached jupyter-1.0.0-py2.py3-none-any.whl.metadata (995 bytes)
Collecting matplotlib~=3.4.3 (from -r handson-ml2/requirements.txt (line 8))
Using cached matplotlib-3.4.3.tar.gz (37.9 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
/tmp/pip-install-f3z2awhg/matplotlib_3c4b97176e144e48adb11d60d664b7bb/setup.py:34: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!
********************************************************************************
Please remove any references to `setuptools.command.test` in all supported versions of the affected package.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
********************************************************************************
!!
from setuptools.command.test import test as TestCommand
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-f3z2awhg/matplotlib_3c4b97176e144e48adb11d60d664b7bb/setup.py", line 54, in <module>
__version__ = versioneer.get_version()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-f3z2awhg/matplotlib_3c4b97176e144e48adb11d60d664b7bb/versioneer.py", line 1410, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "/tmp/pip-install-f3z2awhg/matplotlib_3c4b97176e144e48adb11d60d664b7bb/versioneer.py", line 1344, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-f3z2awhg/matplotlib_3c4b97176e144e48adb11d60d664b7bb/versioneer.py", line 401, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I think this error is about setuptools building, but i dont know how can i resolve it. Can someone help me plz?
Metadata
Metadata
Assignees
Labels
No labels