BlueHatStudio

A Geek's World!

macOS 下安装pyspider出现ERROR: Command “python setup.py egg_info” failed with error code 1 的解决办法

在Terminal中输入:

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 –nocache-dir

pip3 install pyspider

发表评论

电子邮件地址不会被公开。 必填项已用*标注