运行from scrapy import cmdline cmdline.execute('scrapy crawl douban_spider'.split(),单独在cmd里面运行可以,在pycharm运行报错

来源:2-7 spider文件的编写(2)

少小佐

2018-10-02 23:16

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'


写回答 关注

1回答

  • 微企陈琛
    2018-10-06 22:44:45

    https://stackoverflow.com/questions/49356711/scrapy-error-importerror-no-module-named-scrapy-cmdline

Python最火爬虫框架Scrapy入门与实践

做为爬虫工程师Python Scrapy主流爬虫框架你必须要会!

67418 学习 · 223 问题

查看课程

相似问题