wrf-python icon indicating copy to clipboard operation
wrf-python copied to clipboard

how can i install wrf-python through pip and solve these bugs?

Open LeezfBall opened this issue 10 months ago • 4 comments

Here are the errors I met while I tried too pip install [wrf_python] python Version 3.13.2 numpy Version 2.3.2

Image

LeezfBall avatar Jul 08 '25 06:07 LeezfBall

Unfortunately, there's not currently a release on PyPI that's compatible with Python 3.13.

Downgrading to Python 3.12 should help or you should be able to install from source in a Python 3.13 environment though we are still working on some NumPy compatibility issues (see #275).

kafitzgerald avatar Jul 08 '25 14:07 kafitzgerald

Options:

  • Pin Python < 3.12 (before distutils was removed) and NumPy < 2.0
  • pip install git+https://github.com/NCAR/wrf-python (#242 has Python>=3.12 compatibility; alternately, pip install git+https://github.com/kprussing/wrf-python@develop to pull in #261)

DWesl avatar Jul 09 '25 02:07 DWesl

With #261 in, does pip install git+https://github.com/NCAR/wrf-python work for you?

DWesl avatar Jul 23 '25 22:07 DWesl

Seems to resolve and build for Python 3.12+ and Numpy 2 now from the git repository.

acrosby avatar Aug 05 '25 12:08 acrosby