[英]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.