python Shapely OSError: Could not find lib c or load any of its variants []

mac 升级过后,python项目运行报错python Shapely OSError: Could not find lib c or load any of its variants []
在github上找到解决办法没记录如下:
To recap, I removed anything dealing with conda that depends on geos:

conda remove geos, shapely, cartopy

Then installed geos with brew:

brew install geos

Added Kelsey’s workaround to my .bash_profile:

export DYLD_FALLBACK_LIBRARY_PATH=$(HOME)/lib:/usr/local/lib:/lib:/usr/lib

And then pip’ed the two libraries:

pip install shapely
pip install git+git://github.com/SciTools/cartopy.git

Doing that in both the general setup and/or the scipygis virtual env seems to get cartopy to finally work.
我本地的地址如下:

export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/Cellar/geos/3.8.1_1/lib:/usr/local/lib:/lib:/usr/lib
评论 6
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值