安装scrapy提示Could not find a version that satisfies the requirement twisted
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装scrapy提示Could not find a version that satisfies the requirement twisted相关的知识,希望对你有一定的参考价值。
参考技术A 安装scrapy提示Couldnotfind a version that satisfies the requirement twisted(fromversions:)Nomatching distribution foundfortwisted
各种折腾....
最后发现是因为系统centos,当时将自带的python2.6 升级到2.7引起的问题,升级之后一切都好,pip安装其他包都没毛病,就是安装twisted有问题
解决办法:
sudo yum install bzip2-devel,
然后在python源码目录重新configure make make install
ubuntu的朋友sudo apt-get install libbz2-dev
安装python 第三方库遇到的安装问题 microsoft visual studio c++ 10.0 is required,Could not find function xmlCheckVe
问题一: microsoft visual studio c++ 10.0 is required
安装scrapy时候出现需要vc c++ 10,有时安装其他也会有。
解决方法:安装vc 2010,安装过2017无效,安装过程也不一样。
问题二:
安装好,出现Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
解决办法:
1.pip install wheel
2. 到http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml下载xml,python(我是3.4.0,64位)对应版本
3. pip install 带后缀的完整文件名
问题解决后就可以安装scrapy了,
pip install scrapy
检查是否安装好
C:\\Users\\lenovo>scrapy -h
Scrapy 1.4.0 - no active project
以上是关于安装scrapy提示Could not find a version that satisfies the requirement twisted的主要内容,如果未能解决你的问题,请参考以下文章