I am having trouble importing cartopy in a newly created conda environment. I installed cartopy with
conda install -c conda-forge cartopy
but when I try to import it I run into the following error:
ImportError: libgeos_c.so.1: cannot open shared object file: No such file or directory.
I do have libgeos in my enviroment lib directory, but still it doesn't work.
I tried doing what is suggested here: https://github.com/matplotlib/basemap/issues/302 and manually adding the library path :
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
but still not working. I don't know what else to do. It was working just fine before, but after I had to reinstall miniconda because of another issue I was having, I haven't been able to install cartopy.
I'm using conda 4.9.2 and python 3.9.1.