kiw*_*chi 10 python dependencies netcdf4
So I'm trying to run this script in Spyder (Python 3.9)
dset = xr.open_dataset(filename, decode_times=True, use_cftime=True)
print(dset)
Run Code Online (Sandbox Code Playgroud)
But I keep on getting this error:
ValueError: found the following matches with the input file in xarray's IO backends: ['netcdf4', 'h5netcdf']. But their dependencies may not be installed, see:
https://docs.xarray.dev/en/stable/user-guide/io.html
https://docs.xarray.dev/en/stable/getting-started-guide/installing.html
Run Code Online (Sandbox Code Playgroud)
I have already installed via conda the ['netcdf4', 'h5netcdf'].
Did anyone run on the same issue? I have tried this also:
conda install -c anaconda netcdf4 h5netcdf scipy pydap zarr fsspec cftime rasterio cfgrib pooch
Run Code Online (Sandbox Code Playgroud)
but the same valueerror arises.
根据您的错误消息,您似乎缺少 netcdf4 和 h5netcdf 依赖项。
我建议conda install在您的终端/命令行或 IDE(如果支持)中使用安装(例如,Jupyter 笔记本单元):conda install netcdf4 h5netcdf
如果您使用的 Python 环境不是基本环境,请确保您正在安装到项目所使用的环境,方法是在终端中导航(例如 conda activate MYENV),或者在 IDE 中切换到该环境内核。
如果您使用 Jupyter,通常需要重新启动内核才能使更改生效。
| 归档时间: |
|
| 查看次数: |
11807 次 |
| 最近记录: |