简体   繁体   English

无法在我的 Windows 10 x64 机器上安装scrapy

[英]Not able to install scrapy in my windows 10 x64 machine

I got pip install scrapy in cmd,我在 cmd 中pip install scrapypip install scrapy

it said Collecting scrapy and after a few seconds I got the following error:它说Collecting scrapy ,几秒钟后我收到以下错误:

Command "c:\\python35\\python.exe -u -c "import setuptools, tokenize;__file__='C:\\\\Users\\\\DELL\\\\AppData\\\\Local\\\\Temp\\\\pip-build-2nfj5t60\\\\Twisted\\\\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\\DELL\\AppData\\Local\\Temp\\pip-0bjk1w93-record\\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-build-2nfj5t60\\Twisted\\

I am not able to get the error.我无法得到错误。

使用pip3代替pip因为您使用的是python3

Just fixed the issue using this:刚刚使用这个解决了这个问题:

  1. From the this link > https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted downloading the twist version which is compatible with your OS and install it to your computer or virsualenv.从这个链接 > https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted下载与您的操作系统兼容的扭曲版本并将其安装到您的计算机或 virsualenv。
  2. In command line: pip install path-to-your-twist-file***.whl在命令行中: pip install path-to-your-twist-file***.whl
  3. Then using pip install scrapy然后使用pip install scrapy

Done!完毕!

According to scrapy documentation it doesn't run on Python 3.5 on windows machine.根据scrapy文档,它不能在Windows机器上的Python 3.5上运行。 Try using python 2.7 (perhaps in virtualenv) and see what happens.尝试使用 python 2.7(可能在 virtualenv 中),看看会发生什么。

https://doc.scrapy.org/en/latest/intro/install.html https://doc.scrapy.org/en/latest/intro/install.html

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

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