运行from scrapy import cmdline cmdline.execute('scrapy crawl douban_spider'.split(),单独在cmd里面运行可以,在pycharm运行报错
Traceback (most recent call last):
File "F:/pythonspace/scrapy/douban/douban/main.py", line 1, in <module>
from scrapy import cmdline
ImportError: cannot import name 'cmdline'