An error occured while installing the wrf-python
library.
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\HP\AppData\Local\Temp\pip-install-oyk6_k1z\wrf-python_4d4fb187dd8b475c900ed0c20f1b8158\setup.py", line 17, in <module>
import numpy.distutils.core
ModuleNotFoundError: No module named 'numpy.distutils'
[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 am trying to install the packages wrf-python and gdal. An error occured while installing the packages.
You are using python 3.12 as
numpy.distutils
are removed inpython 3.12
.
python 3.11
or python 3.10
separately and runpip install wrf-python
Latest version of wrf-python
was released:
Released: May 26, 2022
https://pypi.org/project/wrf-python/
numpy.distutils has been deprecated in NumPy 1.23.0. It will be removed for Python 3.12; for Python <= 3.11 it will not be removed until 2 years after the Python 3.12 release