python3.5安装scrapy_win10下基于python3.5安装scrapy教程
1、安裝pywin32
pip install pywin32-220.1-cp35-cp35m-win32.whl
2、安裝
twisted
pip install Twisted-16.5.0-cp35-cp35m-win32.whl
3、安裝?scrapy
pip install scrapy
在這一步的安裝中出現以下報錯:
Command "c:\users\springlustre\appdata\local\programs\python\python35-32\python.exe -u -c "import setuptools, tokenize;_
_file__='C:\\Users\\SPRING~1\\AppData\\Local\\Temp\\pip-build-u69illst\\lxml\\setup.py';f=getattr(tokenize, 'open', open
)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Use
rs\SPRING~1\AppData\Local\Temp\pip-serz1p13-record\install-record.txt --single-version-externally-managed --compile" fai
led with error code 1 in C:\Users\SPRING~1\AppData\Local\Temp\pip-build-u69illst\lxml\
原因是在windows環境中,調用的vcvarsall.bat的文件在c++編程環境才會有。網上的解決方法有兩個:一是安裝MinGW;二是安裝Visual Studio ,我用的是第二種
下載安裝visio studio
再次安裝報錯
C:\Users\SPRING~1\AppData\Local\Temp\xmlXPathInit5xdue4a3.c(1): fatal error C1083: 無法打開包括文件: “libxml/xpath.
: No such file or directory
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'E:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2
運行命令 ?pip install lxml
總結
以上是生活随笔為你收集整理的python3.5安装scrapy_win10下基于python3.5安装scrapy教程的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: web指纹识别技术
- 下一篇: Hamilton回路的判定与构造