I'm getting the following error when I try to import gdal:
>>> from osgeo import gdal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "//anaconda/lib/python3.6/site-packages/osgeo/__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "//anaconda/lib/python3.6/site-packages/osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
File "//anaconda/lib/python3.6/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "//anaconda/lib/python3.6/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: dlopen(//anaconda/lib/python3.6/site-packages/osgeo/_gdal.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libgdal.20.dylib
Referenced from: //anaconda/lib/python3.6/site-packages/osgeo/_gdal.cpython-36m-darwin.so
Reason: image not found
I've tried uninstalling and reinstalling (it's installed with conda-forge), updating, and checking to make sure those files along the paths exists, but nothing seems to work! I also looked at a thread that suggested checking the .condarc file but can't find one.