Cannot find installed module in python: Scrapy

I’m doing a tutorial for a web scraping framework in python and I keep getting this issue. I already have the latest version of it installed. Any ideas?


Traceback (most recent call last):
  File "/home/dominic/code/imgspider/imgspider/spiders/", line 3, in <module>
    import scrapy
ModuleNotFoundError: No module named 'scrapy'


#!/usr/bin/env python3

import scrapy

class ImageSpider(scrapy.Spider):
    name = "images"

    def start_requests(self):
        # links go here
        urls = [
        for url in urls:
            yield scrapy.Request(url=url, callback=self.parse)

    def parse(self, response):
        page = response.url.split("/")[-2]
        filename = 'quotes-%s.html' % page
        with open(filename, 'wb') as f:
        self.log('Saved file %s' % filename)

Where is the scrapy module located in relation to your project’s root folder?

Did you install it globally or locally? As in, does your Python exe have access to it?