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?

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.