简体   繁体   English

Python 3.5.2失败,错误代码为1 OS:Win10

[英]Python 3.5.2 failed with error code 1 OS:Win10

I'm rookie in python, try to install scrapy but here's what python return 我是python的新手,尝试安装scrapy,但这是python返回的内容

Failed building wheel for lxml lxml的构建轮失败

here's the full msg. 这是完整的味精。

Command "C:\\Users\\sande\\AppData\\Local\\Programs\\Python\\Python35-32\\python.exe -u -c "import setuptools, tokenize; 命令“ C:\\ Users \\ sande \\ AppData \\ Local \\ Programs \\ Python \\ Python35-32 \\ python.exe -u -c”导入设置工具,标记化; file ='C:\\Users\\sande\\AppData\\Local\\Temp\\pip-build-fisxcup_\\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:\\Users\\sande\\AppData\\Local\\Temp\\pip-qzhtmsde-record\\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\\Users\\sande\\AppData\\Local\\Temp\\pip-build-fisxcup_\\lxml\\ 文件 ='C:\\ Users \\ sande \\ AppData \\ Local \\ Temp \\ pip-build-fisxcup_ \\ lxml \\ setup.py'; f = getattr(tokenize,'open',open)( file ); code = f.read ().replace('\\ r \\ n','\\ n'); f.close(); exec(compile(code, file ,'exec')))“安装--record C:\\ Users \\ sande \\ AppData \\ Local \\ Temp \\ pip-qzhtmsde-record \\ install-record.txt-“单一版本-外部管理--compile”失败,错误代码为1:C:\\ Users \\ sande \\ AppData \\ Local \\ Temp \\ pip- build-fisxcup_ \\ lxml \\

There's few solution on StackOverflow, tried but still not work. 关于StackOverflow的解决方案很少,尝试过但仍然无法解决。

Here's what I tried 这是我尝试过的

-m pip install wheel

success, but doesn't make any difference. 成功,但没有任何区别。

-m pip install twisted

Fail, here's what python return 失败,这是python返回的内容

error: Unable to find vcvarsall.bat 错误:找不到vcvarsall.bat

Failed building wheel for twisted 扭曲的建筑轮子失败

-m pip install python3-dev

Failed, here's the return 失败,这是退货

Could not find a version that satisfies the requirement python3-dev (from versions: ) No matching distribution found for python3-dev 找不到满足要求python3-dev的版本(来自版本:)找不到与python3-dev匹配的发行版

I'm running out of idea, please kindly assist, thanks in advance. 我的想法不对劲,请提供协助,谢谢。

From the scrapy website 从scrapy网站

I dont think your going to have success with python 3 and scrapy. 我认为您不会在python 3和scrapy上取得成功。

Python 3 is not supported on Windows. Windows不支持Python 3。 This is because Scrapy core requirement Twisted does not support Python 3 on Windows. 这是因为Scrapy核心要求Twisted在Windows上不支持Python 3。

也可以从scrapy网站上尝试使用anaconda安装它(有py35安装),请检查此相关答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM