Centos 安装pyspider 必须成功

2023-05-16

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

 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Centos 安装pyspider 必须成功 的相关文章

随机推荐