0

So I've been trying to install both Python 2 and 3, but have not had any success. I have tried: Multilpe python versions and interpreters

How to use multiple versions of Python without uninstallation

I may be doing it wrong. I ultimately want to use modules that only work in Python 2 right now in Python 3, e.g. Scrapy. Is there any way to do this?

Community
  • 1
  • 1
Evan Bloemer
  • 1,051
  • 2
  • 11
  • 31

1 Answers1

0

Unfortunately it is not possible to use Python 2 libraries with Python 3, since they are not compatible.

Normally, you could use tools like 2to3 to make code compatible with Python 3. But Scrapy's dependency twisted is also not available for Python 3, see also this similar question and the accepted answer, in which alternatives for Scrapy in Python 3 are listed.

If you really want to use Scrapy, I recommend to use Python 2 in your project.

Community
  • 1
  • 1
x squared
  • 3,173
  • 1
  • 26
  • 41