安裝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