Running Scrapy yields me the error:
ImportError: No module named scrapy.cmdline
I looked and I do have that m开发者_如何学编程odule in the correct location. Can this issue be resolved by creating a new Environment Variable?
I work on a mac os Lion with enthought distribution and I had the same problem.
In the scrapy.py script file, the problem is that #!/usr/bin/python
does not reference my enthought python so try changing the #! line to: #!/usr/bin/env python
.
and the usual python is used
Add the correct directory to PYTHONPATH
in environment variables.
精彩评论