我有同樣的問題,甚至完全卸載並重新安裝Anaconda發行版並沒有解決它。看起來像使用「conda」來安裝netCDF4現在在錯誤的地方查找krb庫。
在最近更新到版本1.1.7的netCDF4代碼後,我能夠得到它的工作。這是從他們的網站(https://github.com/Unidata/netcdf4-python)更新信息:
3/19/2015: Version 1.1.7 released. Global Interpreter Lock (GIL) now released >when extension module calls C library for read operations. This speeds up >concurrent reads when using threads. Users who wish to use netcdf4-python >inside threads should read http://www.hdfgroup.org/hdf5-quest.html#gconc >regarding thread-safety in the HDF5 C library. Fixes to setup.py now ensure >that pip install netCDF4 with export USE_NCCONFIG=0 will use environment >variables to find paths to libraries and include files, instead of relying >exclusively on the nc-config utility.
在此之後,我設置環境變量「USE_NCCONFIG = 0」,然後用「點子」來安裝,而不是「暢達」 netCDF4。這終於得到它的工作。希望這也適用於你(或者你已經修復了它......)。