安装python 第三方库遇到的安装问题 microsoft visual studio c++ 10.0 is required,Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?


问题一: 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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM