我在 Windows 7 的 python 2.7 环境中安装了 Scrapy,但是当我尝试使用 scrapy startproject newProject 启动一个新的 Scrapy 项目时,命令提示符显示了这个信息
'scrapy' is not recognized as an internal or external command,
operable program or batch file.
注意:
- 我也有 python 3.5 但没有 scrapy
- 这个问题不是this的重复问题
请您参考如下方法:
Scrapy should be in your environment variables .您可以在 Windows 中使用以下命令检查它是否存在:
echo %PATH% # To print only the path
set # For all
或
printenv # In linux
Make 应该 scrapy 在你的路径中,如果不在,将它添加到你的路径中,它应该(可能)解决你的问题。我说的是可能,因为有可能是你没有提到的其他问题导致的。
