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/![](https://img-blog.csdnimg.cn/20200512100106736.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3Rhb2ppYW5f,size_16,color_FFFFFF,t_70)
解决 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 报错,盘它![](https://img-blog.csdnimg.cn/20200512101044722.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3Rhb2ppYW5f,size_16,color_FFFFFF,t_70)
解决 No.2
sudo yum install gcc
pip3 install pyspider
错误 No.3
Deprecated option 'domaincontroller': use 'http_authenticator.domain_controller' instead.
![](https://img-blog.csdnimg.cn/20200512101813851.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3Rhb2ppYW5f,size_16,color_FFFFFF,t_70)
解决 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)
![](https://img-blog.csdnimg.cn/20200512102909738.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3Rhb2ppYW5f,size_16,color_FFFFFF,t_70)
解决 No.4
pip3 uninstall pycurl
export PYCURL_SSL_LIBRARY=nss
pip3 install pycurl
错误 No.5
ImportError: cannot import name 'DispatcherMiddleware'
![](https://img-blog.csdnimg.cn/20200512103242961.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3Rhb2ppYW5f,size_16,color_FFFFFF,t_70)
解决 No.5
python3 -m pip uninstall werkzeug -y
python3 -m pip install werkzeug==0.16.1
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)