安装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:Userslenovo>scrapy -h
Scrapy 1.4.0 - no active project

原文地址:https://www.cnblogs.com/xiexiaoxiao/p/7020422.html