Search code examples
pythonweb-scrapingscrapyscreen-scraping

Scrapy import error with cmdline


I recently pip installed Scrapy and received this error when I used import scrapy and from scrapy.cmdline import execute. How does python look for these modules, and how would I go about solving this problem? Thanks!

>>> import scrapy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\Scripts\scrapy.py", line 3, in <module>
    from scrapy.cmdline import execute
ImportError: No module named cmdline

Solution

  • It must be a problem with pip. Easy install works for scrapy.