簡體   English   中英

無法在我的 Windows 10 x64 機器上安裝scrapy

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

我在 cmd 中pip install scrapypip 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

剛剛使用這個解決了這個問題:

  1. 從這個鏈接 > https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted下載與您的操作系統兼容的扭曲版本並將其安裝到您的計算機或 virsualenv。
  2. 在命令行中: pip install path-to-your-twist-file***.whl
  3. 然后使用pip install scrapy

完畢!

根據scrapy文檔,它不能在Windows機器上的Python 3.5上運行。 嘗試使用 python 2.7(可能在 virtualenv 中),看看會發生什么。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM