Issue
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!
Solution
Could you use:
pip install Scrapy
import scrapy
print(scrapy.__version__)
output:
1.8.0
when I run:
from scrapy import Selector
I get no error
Answered By - BpY
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.