AndreKR
AndreKR

Reputation: 33697

How do I know whether to use Python 2 or Python 3?

As we all know, usually Python projects exclusively run on the Python version (2 or 3) that they were made for.

However, when I come across Python projects, for example this one on GitHub, they almost never state the necessary Python version.

How do you know which Python you need to run the project?

Upvotes: 3

Views: 122

Answers (1)

GreenAsJade
GreenAsJade

Reputation: 14685

Python doesn't support a means to determine this automatically.

You (the author of a python project) can make your python application friendly, as discussed here.

However, if the author didn't do that (and most don't) then you can only try and hope for the best, AFAIK.

Upvotes: 1

Related Questions