This repository was archived by the owner on Jun 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 314
This repository was archived by the owner on Jun 12, 2024. It is now read-only.
Deprecated requirement: numpy.distutils #32
Copy link
Copy link
Open
Description
Problem:
numpy.distutils is deprecated since NumPy 1.23.0, as a result of the deprecation of distutils itself. It will be removed for Python >= 3.12. For older Python versions it will remain present.
And according to numpy, 1.22 is deprecated on 1-jan-2024
Solution:
It is recommended to use setuptools < 60.0 for those Python versions.
Details:
I just tried to pip install the project, but I had this error:
$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting setproctitle==1.1.10 (from -r requirements.txt (line 1))
Downloading setproctitle-1.1.10.zip (34 kB)
Preparing metadata (setup.py) ... done
Collecting numpy==1.22.0 (from -r requirements.txt (line 2))
Downloading numpy-1.22.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.8/16.8 MB 10.3 MB/s eta 0:00:00
Collecting pyglib==0.1 (from -r requirements.txt (line 3))
Downloading pyglib-0.1.tar.gz (4.0 kB)
Preparing metadata (setup.py) ... done
Collecting scikit_image==0.9.3 (from -r requirements.txt (line 4))
Downloading scikit-image-0.9.3.tar.gz (7.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.8/7.8 MB 9.8 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
/tmp/pip-install-93z5974c/scikit-image_faad159f2db34dc8a4c6bb48f7eb477c/setup.py:32: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
from numpy.distutils.core import setup
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-93z5974c/scikit-image_faad159f2db34dc8a4c6bb48f7eb477c/setup.py", line 105, in <module>
check_requirements()
File "/tmp/pip-install-93z5974c/scikit-image_faad159f2db34dc8a4c6bb48f7eb477c/setup.py", line 99, in check_requirements
raise ImportError('You need `%s` version %d.%d or later.' \
ImportError: You need `Cython` version 0.17 or later.
[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.```
Metadata
Metadata
Assignees
Labels
No labels