Python command line breakdown (for "scrapy")

I tried to install SCRAPY and play with it.

The textbook says:

   scrapy startproject tutorial

Could you break this to help me understand this. I have various releases of Python on my Windows 7 machine for various conflicting projects, so when I installed Scrapy with their .exe, it installed it in the c: \ Python26_32bit directory, which is good. But I don't have a single version of Python in my path.

So I tried:

\python26_32bit\python.exe scrapy startproject tutorial 

and I get the error:

\python26_32bit\python.exe: can't open file 'scrapy': [Errno 2] No such file or directory. 

I see that scrapy is installed here: c: \ Python26_32bit \ Lib \ site-packages \ scrapy

I can not find the scrapy.py file, so what is "scrapy" in Python terminology, lib, site package, program? and how to change the pattern above to run?

Python Google App Engine, .

+3
3

scrapy - , python "scrapy", "scrapy" PATH.

, "scrapy.py"

from scrapy.cmdline import execute
execute()

\python26_32bit\python.exe scrapy.py startproject tutorial

+3

C:\Python26_32bit\Scripts\Scrapy startproject tutorial 

C:\Python26_32bit\Scripts

0

: Python Windows. Cygwin (babun). pip install Scrapy Windows (Scrapy C:\Python27\Lib\site-packages\scrapy). Scrapy . , . :

.bashrc/.zshrc/etc :

alias scrapy='python.exe -mscrapy.cmdline'

Now I can run the creaks inside the baboon without any problems.

Note. I also had to run pip install service_identitymanually.

0
source

All Articles