安装pysam后,import之,结果,出现报错:
Library not loaded: libcurl.4.dylib
尝试很多办法,最终发现应当这样解决:
# 首先重装curl
brew install curl
# 然后执行下面命令
sudo cp /usr/lib/libcurl..dylib /usr/lib/libcurl..dylib.bk
sudo cp /usr/local/opt/curl/lib/libcurl..dylib /usr/lib/libcurl..dylib
Ref
http://*.com/questions/23089718/using-pycurl-in-pycharm