简体   繁体   中英

Error with netCDF4 import in python

I get the following error when I try to use netcdf4 in python:

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. 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
  • Recompile

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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