2017-08-31 98 views
0

通過命令提示符在Windows 10中安裝Scrapy時,我在最後收到此消息。請告訴我可能發生了什麼問題,或者我該如何克服它。Scrapy安裝拋出錯誤

[WinError 2] The system cannot find the file specified 

    ---------------------------------------- 
Command "c:\users\sarwar\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Sarwar\\AppData\\Local\\Temp\\pip-build-gigbscvh\\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\Sarwar\AppData\Local\Temp\pip-xo9y3e03-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Sarwar\AppData\Local\Temp\pip-build-gigbscvh\Twisted\ 
+1

你執行什麼命令來安裝? –

+0

命令是--- pip安裝scrapy – Shad

+0

你試過'easy_install scrapy'嗎? –

回答

0

scrapy在windows平臺上安裝pip有一些問題。我建議你使用Anaconda安裝scrapy並使用它。 Anaconda附帶了許多其他軟件包需要的預定義軟件包。在使用python時,Anaconda一直對我非常有魅力。

+0

好的,我安裝了anaconda,現在應該輸入什麼命令,以及在哪裏輸入。 – Shad

+0

這是您必須在anaconda提示符中鍵入的命令 - 「conda install -c conda-forge scrapy」。按照此處的說明進行進一步的說明 - https://doc.scrapy.org/en/latest/intro/install.html#windows –