I'm using Spyder with Anaconda and since MacOS last update (Big Sur 11.0.1), when doing import geopandas
, I get the following error:
OSError: Could not find lib c or load any of its variants [].
There are several subjects on the matter (particularly this one and this one ), that mainly recommends to reset the environment variable DYLD_FALLBACK_LIBRARY_PATH
by putting in the Terminal:
export DYLD_FALLBACK_LIBRARY_PATH=$(HOME)/lib:/usr/local/lib:/lib:/usr/lib
However, here is what I get:
-bash: HOME: command not found
A brew
or pip
install didn't fix the problem either.
Does anyone have an idea on how I can fix this? Am I suppose to replace $(HOME)
by something?
Many thanks!
我遇到了同样的错误,只需重新安装 Shapely 即可修复它:
pip install --upgrade --force-reinstall shapely
I had the same issue. To fix the problem, use:
Change the Shapely package
https://github.com/Toblerity/Shapely/commit/a34ec59a7dc9089a71968c6871e29addd872ea3b
And then reinstall Xcode:
xcode-select --install
The geos.py file and line number you need to modify will be in the log output that generated the OSError. Just look a few lines up.
供参考:我最终在 Anaconda 上重新安装了一个新环境,它可以工作,但我无法解决原来的问题。
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.