Mac下安装pyspider报了Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/

复制以下代码到终端执行:

pip3 uninstall pycurl

export PYCURL_SSL_LIBRARY=openssl 

export LDFLAGS=-L/usr/local/opt/openssl/lib 

export CPPFLAGS=-I/usr/local/opt/openssl/include

pip3 install pycurl --compile --no-cache-dir

再执行pip3 install pyspider就OK了

猜你喜欢

转载自blog.csdn.net/u011046452/article/details/84106326