简体   繁体   English

python中的netCDF4导入错误

[英]Error with netCDF4 import in python

I get the following error when I try to use netcdf4 in python: 当我尝试在python中使用netcdf4时出现以下错误:

Traceback (most recent call last):
File "test.py", line 1, in <module>
from netCDF4 import Dataset
ImportError: /root/.local/lib/python2.7/site-packages/netCDF4.so: undefined symbol:       MPI_File_get_atomicity

I tried already to recompile mpich2 but this didn't help. 我已经尝试重新编译mpich2,但这没有帮助。 Any help would be much appreciated! 任何帮助将非常感激! Thank you in advance! 先感谢您!

Cheers, Sven 欢呼声,斯文

These kinds of questions are always hard to answer and are usually very specific. 这类问题总是很难回答,而且通常非常具体。

In this case: 在这种情况下:

  • Upgrade netCDF4 library 升级netCDF4库
  • Recompile 重新编译

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM