I'm working on win7 on a system with git-bash. I've installed Miniconda and loaded scrapy using:
conda install -c scrapinghub scrapy
I've set the environmental variables to contain:
C:\Miniconda2;C:\Miniconda2\Scripts
Now within the scrapy vitualenv, when I do :
(scrapy)
$ scrapy startproject scrapytest
sh: scrapy: command not found
How do I use the scrapy command line tool here?
I don't know how git-bash has effect on this, but installing scrapy registers one entry point, a console script, calling
scrapy.cmdline:execute
. See this page for more info on entry points.You can invoke the same using the python interpreter with
-m
like this:There seemed to be a problem with using the anaconda install command above. I created a new virtualenv using python 2.7.11 and installed scrapy using pip and it worked. Part of the problem earlier may have been that pip was not updated to the latest version , so do this first. here is a list of packages I ended up installing in my virtual env: