简体   繁体   中英

Scrapy error “No module named cmdline”

I've some problem with Scrapy on my mac, I checked many website to find an answer but I didn't find any good one.

Here's my error :

Traceback (most recent call last):
   File "scrapy-ctl.py", line 6, in <module>
      from scrapy.command.cmdline import execute
ImportError: No module named cmdline

I actually have Scrapy 0.16.3 ,Twisted 12.3.0, lxml 3.1beta1, libxml2 and libxslt

Thank you for your time !

It took a while to work out and involved searching the scrapy github repository , but the cmdline module has moved. Instead of your current import, try this:

from scrapy.cmdline import execute

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM