[英]Not able to install scrapy in my windows 10 x64 machine
我在 cmd 中pip install scrapy
了pip install scrapy
,
它说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\\
我无法得到错误。
使用pip3
代替pip
因为您使用的是python3
刚刚使用这个解决了这个问题:
完毕!
根据scrapy文档,它不能在Windows机器上的Python 3.5上运行。 尝试使用 python 2.7(可能在 virtualenv 中),看看会发生什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.