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
Change the default LibreSSL on Mojave to OpenSSL, avoid the pycurl error.
Then install PySpider through pip3
pip3 install pyspider