如何在 mac 上使用 python 读取 CDF 文件?
How to read CDF file with python on mac?
我已经使用以下命令安装了 spacepy (MacOS Mojave):
pip install git+https://github.com/spacepy/spacepy.git
但我在尝试 from spacepy import pycdf
:
时不断收到此错误
Exception: Cannot load CDF C library; checked . Try 'os.environ["CDF_LIB"] = library_directory' before import.
我尝试遵循 the directions from their website,但这些说明似乎有点过时了。
我已经使用以下命令安装了 spacepy (MacOS Mojave):
pip install git+https://github.com/spacepy/spacepy.git
但我在尝试 from spacepy import pycdf
:
Exception: Cannot load CDF C library; checked . Try 'os.environ["CDF_LIB"] = library_directory' before import.
我尝试遵循 the directions from their website,但这些说明似乎有点过时了。