-2

I am trying to install Scrapy on Windows by Anaconda, finally some progress was made with help from "https://github.com/dangra/scrapy/archive/moderm-setuppy.zip#egg=Scrapy" but now the error thrown is

ModuleNotFoundError: No module named 'urllib2'
halfer
  • 19,824
  • 17
  • 99
  • 186
  • Hello, @gladi8er welcome to SO, plz take the tour to How to Ask section. – Zubad Ibrahim Apr 08 '20 at 07:50
  • 2
    Please read [Under what circumstances may I add "urgent" or other similar phrases to my question, in order to obtain faster answers?](//meta.stackoverflow.com/q/326569) – jps Apr 08 '20 at 07:53

1 Answers1

1

You are likely running some legacy Python 2 code that does not work in Python 3 anymore, because module urllib2 was changed.

More information in this StackOverflow answer:

Import error: No module name urllib2

Your options include

1) Find some other solutions that does not rely on unsupported Python 2

2) Try to get Python 2 installed on your computer and run the code through it

3) Update the code to support Python 3

Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
  • Can you recommend any other way to install scrapy as the offiicial documentation is not working for me – gladi8er Apr 08 '20 at 08:47
  • Here is the offical Scrapy installation guide. Please make sure you have Python 3.5 or higher installed https://docs.scrapy.org/en/latest/intro/install.html It works. If it does not work then something is wrong with your environment and you are not using Python 3.5 or higher. – Mikko Ohtamaa Apr 08 '20 at 08:53