2017-08-31 97 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 –