开发者

ImportError: Scrapy for python no longer works, No module named scrapy.cmdline

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜