开发者

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

开发者 https://www.devze.com 2023-03-17 06:41 出处:网络
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

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

精彩评论

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