>> Require Python matplotlib module
>> Require Python matplotlib module pylab submodule
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.6 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "<string>", line 3, in <module>
AttributeError: _ARRAY_API not found
>> Require python opencv version greater than 3 or 4. Got N/A
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.6 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "<string>", line 3, in <module>
File "/home/ts/.local/lib/python3.10/site-packages/colour/__init__.py", line 72, in <module>
from colour import plotting # noqa: F401
File "/home/ts/.local/lib/python3.10/site-packages/colour/plotting/__init__.py", line 3, in <module>
if not is_matplotlib_installed(): # pragma: no cover
File "/home/ts/.local/lib/python3.10/site-packages/colour/utilities/requirements.py", line 107, in is_matplotlib_installed
import matplotlib as mpl # noqa: F401
File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 109, in <module>
from . import _api, _version, cbook, docstring, rcsetup
File "/usr/lib/python3/dist-packages/matplotlib/rcsetup.py", line 27, in <module>
from matplotlib.colors import Colormap, is_color_like
File "/usr/lib/python3/dist-packages/matplotlib/colors.py", line 56, in <module>
from matplotlib import _api, cbook, scale
File "/usr/lib/python3/dist-packages/matplotlib/scale.py", line 23, in <module>
from matplotlib.ticker import (
File "/usr/lib/python3/dist-packages/matplotlib/ticker.py", line 136, in <module>
from matplotlib import transforms as mtransforms
File "/usr/lib/python3/dist-packages/matplotlib/transforms.py", line 46, in <module>
from matplotlib._path import (
AttributeError: _ARRAY_API not found
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.6 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "<string>", line 3, in <module>
File "/home/ts/.local/lib/python3.10/site-packages/colour/__init__.py", line 72, in <module>
from colour import plotting # noqa: F401
File "/home/ts/.local/lib/python3.10/site-packages/colour/plotting/__init__.py", line 9, in <module>
is_matplotlib_installed(raise_exception=True)
File "/home/ts/.local/lib/python3.10/site-packages/colour/utilities/requirements.py", line 107, in is_matplotlib_installed
import matplotlib as mpl # noqa: F401
File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 109, in <module>
from . import _api, _version, cbook, docstring, rcsetup
File "/usr/lib/python3/dist-packages/matplotlib/rcsetup.py", line 27, in <module>
from matplotlib.colors import Colormap, is_color_like
File "/usr/lib/python3/dist-packages/matplotlib/colors.py", line 56, in <module>
from matplotlib import _api, cbook, scale
File "/usr/lib/python3/dist-packages/matplotlib/scale.py", line 23, in <module>
from matplotlib.ticker import (
File "/usr/lib/python3/dist-packages/matplotlib/ticker.py", line 136, in <module>
from matplotlib import transforms as mtransforms
File "/usr/lib/python3/dist-packages/matplotlib/transforms.py", line 46, in <module>
from matplotlib._path import (
AttributeError: _ARRAY_API not found
/home/ts/.local/lib/python3.10/site-packages/colour/utilities/verbose.py:322: ColourUsageWarning: "Matplotlib" related API features are not available: "numpy.core.multiarray failed to import".
See the installation guide for more information: https://www.colour-science.org/installation-guide/
warn(*args, **kwargs) # noqa: B028
最新发布