我已经安装了 ecCodes 库
pip install eccodes
当我用 'pip list' 检查它时,它似乎安装为 0.9.7 ver 但命令:
python -m eccodes selfcheck
返回错误
RuntimeError: Could not load the ecCodes library!
当我尝试导入 eccodes 时发生同样的错误。我正在使用 Windows 10 和 Python 3.7.6 有什么问题吗?
完整错误:
import eccodes
Traceback (most recent call last):
File "<ipython-input-1-cfa7540a6bb2>", line 1, in <module>
import eccodes
File "C:\Users\admin1\anaconda3\lib\site-packages\eccodes\__init__.py", line 15, in <module>
from .eccodes import *
File "C:\Users\admin1\anaconda3\lib\site-packages\eccodes\eccodes.py", line 12, in <module>
from gribapi import __version__
File "C:\Users\admin1\anaconda3\lib\site-packages\gribapi\__init__.py", line 13, in <module>
from .gribapi import * # noqa
File "C:\Users\admin1\anaconda3\lib\site-packages\gribapi\gribapi.py", line 2217, in <module>
__version__ = grib_get_api_version()
File "C:\Users\admin1\anaconda3\lib\site-packages\gribapi\gribapi.py", line 2207, in grib_get_api_version
raise RuntimeError("Could not load the ecCodes library!")
RuntimeError: Could not load the ecCodes library!