Centos 安装pyspider 必须成功

  • Post author:
  • Post category:其他


Centos安装pyspider踩过的坑!!!一个接着一个

写在前面的话:

一直在本地机器小玩玩pyspider,今天心血来潮linux安排上。。。网上教程一大堆,一个接着一个坑。特此记录错误过程与解决方案,注重解决问题,直接上命令。

pip3 install pyspider 

错误 No.1

Command ”


python setup.py egg_info


” failed with error code 1 in /tmp/pip-build-8s1_hh12/pycurl/

解决 No.1

centos
yum install libcurl4-gnutls-dev

ubuntu
apt-get install libcurl4-gnutls-dev



#windows
pip3 install wheel

#下载对应python版本
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl

pip3 install xxxxxxxxx.whl


pip3 install pyspider

错误 No.2

pip3 install pycurl



gcc 报错,盘它


解决 No.2

sudo yum install gcc 

pip3 install pyspider

错误 No.3

Deprecated option ‘domaincontroller’: use ‘

http_authenticator.domain_controller

‘ instead.

解决 No.3   降版本!

python -m pip install wsgidav==2.4.1

错误 No.4

pip3 install pycurl


ImportError: pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (none/other)



解决 No.4

pip3 uninstall pycurl

export PYCURL_SSL_LIBRARY=nss  

pip3 install pycurl

错误 No.5


ImportError: cannot import name ‘DispatcherMiddleware’



解决 No.5

python3 -m pip uninstall werkzeug -y

python3 -m pip install werkzeug==0.16.1



版权声明:本文为taojian_原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。