cartopy conda安装错误osx:库未加载:@rpath / libproj.0.dylib

时间:2021-12-23 22:04:18

Did conda install:

conda安装了吗:

conda install -c scitools cartopy

Seemed to go find, but now I'm getting the following error:

似乎去寻找,但现在我收到以下错误:

import cartopy.crs as ccrs

Traceback (most recent call last):

  File "<ipython-input-1-762e43a32730>", line 1, in <module>
    import cartopy.crs as ccrs

  File "/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/__init__.py", line 110, in <module>
    import cartopy.crs

  File "/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/crs.py", line 37, in <module>
    from cartopy._crs import CRS, Geocentric, Geodetic, Globe, PROJ4_RELEASE

ImportError: dlopen(/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/_crs.so, 2): Library not loaded: @rpath/libproj.0.dylib
  Referenced from: /Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/_crs.so
  Reason: image not found

Any suggestions?

I also tried building from source and got the same problem.

我也尝试从源代码构建并遇到同样的问题。

I had a prior install of GDAL Complete, if that matters.

如果重要的话,我事先安装了GDAL Complete。

1 个解决方案

#1


Looks like an actual bug in program: https://github.com/SciTools/cartopy/issues/617

看起来像程序中的实际错误:https://github.com/SciTools/cartopy/issues/617

#1


Looks like an actual bug in program: https://github.com/SciTools/cartopy/issues/617

看起来像程序中的实际错误:https://github.com/SciTools/cartopy/issues/617