问题
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