No module named scrapy - Python

I installed scrapy using conda. When i give

pip show scrapy

it clearly shows that scrapy is installed.But when i run the following code i am getting an error: No module named scrapy

import scrapy

class QuotesSpider(scrapy.Spider):
    name = "quotes"

    def start_requests(self):
        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)

How to solve this error?

Traceback (most recent call last):
  File "C:\Users\Nikeshh\Downloads\youtube_tutorials-master\web_scraping_and_automation\scrapy\", line 2, in <module>
    import scrapy
ImportError: No module named scrapy