Python backward compatibility

Is there an easy way to find out if a Python package will work if it doesn't match my version of Python? For example, I cannot get PyGreSQL for Python 2.7 on Win (only 2.6), and I cannot get ZODB for Win later than Python 2.4. Version mismatch is incompatible, or do I just need to rename the package directory?

+4
source share
1 answer

It is impossible to say for sure whether the package will work with another version of Python, but using older packages on the newer Python 2.x works much more efficiently than vice versa.

One thing that you need to pay attention to: if you install the Windows kit, it can only be installed in the version for which it is intended, because of registries, etc.

+3
source

Source: https://habr.com/ru/post/1337419/


All Articles