Python Command-line Breakdown (for "scrapy")
Solution 1:
scrapy is a batch file which execute a python file called "scrapy", so you need to add the file "scrapy"'s path to your PATH environment.
if that is still not work, make "scrapy.py" file with content
from scrapy.cmdline import executeexecute()
and run \python26_32bit\python.exe scrapy.py startproject tutorial
Solution 2:
Try
C:\Python26_32bit\Scripts\Scrapy startproject tutorial
or
add C:\Python26_32bit\Scripts
to your path
Solution 3:
I ran accross this error with the following setup: Python installed on Windows. Cygwin (babun) installed. Used pip install Scrapy
from the Windows installation (Scrapy now in C:\Python27\Lib\site-packages\scrapy). Wanted to use Scrapy from within babun. Got the same error as you. What you can do:
In your .bashrc/.zshrc/etc, add the following:
alias scrapy='python.exe -mscrapy.cmdline'
I can now run scrapy inside babun without any problems.
Note: I also had to run pip install service_identity
manually.
Post a Comment for "Python Command-line Breakdown (for "scrapy")"