Shreyansh Jha
Shreyansh Jha

Reputation: 3

Scrapy Import Error: No Module named Scrapy

I installed scrapy using the command line

pip install git+https://github.com/scrapy/scrapy@master --no-dependencies --upgrade

once installed, I tried importing scrapy in one of my python projects but an error arises saying:

Traceback (most recent call last):
File "C:\Users\Lenovo\Desktop\Linkedin\script.py", line 7, in <module>
from scrapy import Selector
ImportError: No module named scrapy
[Finished in 0.983s]

What shall I do? Can't find a correct solution on Google yet!

Upvotes: 0

Views: 5754

Answers (3)

Danish Khan
Danish Khan

Reputation: 53

Try to install it with conda and secondly set your python environ path.

Upvotes: 1

CHAVDA MEET
CHAVDA MEET

Reputation: 935

#To install Scrapy using conda run:

conda install -c conda-forge scrapy

#if you’re already familiar with installation of Python packages, you can install Scrapy

pip install Scrapy

Upvotes: 0

BpY
BpY

Reputation: 433

Could you use:

pip install Scrapy

source

import scrapy

print(scrapy.__version__)

output:

1.8.0

when I run:

from scrapy import Selector

I get no error

Upvotes: 0

Related Questions