centos 7 安装scrapy遇到的问题

前端之家收集整理的这篇文章主要介绍了centos 7 安装scrapy遇到的问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

pip install scrapy

错误1:安装scrapy提示安装scrapy提示Could not find a version that satisfies the requirement Twisted>=10.0.0 (from scrapy) (from versions: )No matching distribution found for Twisted>=10.0.0 (from scrapy)

解决方法

wget https://pypi.python.org/packages/source/T/Twisted/Twisted-15.2.1.tar.bz2#md5=4be066a899c714e18af1ecfcb01cfef7

tar -xjvf Twisted-15.2.1.tar.bz2

cd Twisted-15.2.1
python setup.py install
至此,Twisted-15.2.1安装成功了

再次运行pip install scrapy

错误2:

*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'gcc' Failed with exit status 1

解决方法

1.下载libxml2-2.6.26.tar.gz

2.tarzxvflibxml2-2.6.26.tar.gz

3.cd libxml2-2.6.26

4../configure

5.make

6.make install

原文链接:https://www.f2er.com/centos/381324.html

猜你在找的CentOS相关文章