Scrapy installed, but won't recognized in the command line

元气小坏坏 提交于 2019-12-20 03:46:09

问题


I installed Scrapy in my python 2.7 environment in windows 7 but when I trying to start a new Scrapy project using scrapy startproject newProject the command prompt show this massage

'scrapy' is not recognized as an internal or external command,
operable program or batch file.

Note:

  • I also have python 3.5 but that do not have scrapy
  • This question is not duplicate of this

回答1:


See the official documentation.

  • Set environment variable
  • Install pywin32



回答2:


Scrapy should be in your environment variables. You can check if it's there with the following in windows:

echo %PATH% # To print only the path
set # For all 

or

printenv # In linux

Make should scrapy is in your path and if it's not, add it to your path and it should (probably) resolve your problem. I said probably, since it might be caused by other issues you have not mentioned.




回答3:


If you are using Anaconda or Miniconda, try updating the conda command as follows:

conda update -n base -c defaults conda

It worked for me.




回答4:


same problem here and check up different installation guide link and run below in anaconda prompt:

conda update scrapy

now working perfectly with scrapy startproject cmd



来源:https://stackoverflow.com/questions/39486965/scrapy-installed-but-wont-recognized-in-the-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!