您好!
我在尝试用python处理nc文件,首先安装netCDF4,在cmd输入pip install netCDF4后显示似乎已经安装成功
PS C:\Users\claud> pip install netCDF4
Requirement already satisfied: netCDF4 in c:\anaconda\lib\site-packages (1.5.4)
Requirement already satisfied: cftime in c:\anaconda\lib\site-packages (from netCDF4) (1.6.2)
Requirement already satisfied: numpy>=1.9 in c:\anaconda\lib\site-packages (from netCDF4) (1.15.1)
但是当我打开python输入import netCDF4时,却出现了问题
import netCDF4
Traceback (most recent call last):
File "", line 1, in
File "C:\Anaconda\lib\site-packages\netCDF4_init_.py", line 3, in
from ._netCDF4 import *
File "netCDF4_netCDF4.pyx", line 1212, in init netCDF4.netCDF4
File "C:\Anaconda\lib\site-packages\cftime_init.py", line 1, in
from ._cftime import (datetime, real_datetime,
File "src\cftime_cftime.pyx", line 1, in init cftime._cftime
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
想请教一下各位,该如何解决呢?谢谢!