Python Forum
Python version compatibility
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python version compatibility
#1
I'm new to Python, though I know about 10 other languages. I have a general question about the nature of Python's version inter-operability. I once had the experience of downloading a Python app to try out on my system, on which I had just installed a most-recent version of Python. I was dismayed to find that the downloaded script would not work with my Python. It didn't crash, it just aborted. I supposed then that I would have to install an additional version of Python just for this one script. Instead, I wiped Python off my machine. Now, I'm giving Python another look, but am worried that I might be continually facing version conflicts. So, can experienced folks give me any advice on the issues surrounding downward compatibility and with compatibility involving libraries, plugins, etc? Shorter version of question: Is versioning conflicts with Python a common or uncommon issue to deal with?
Reply
#2
I don't have to think about this. I am using Linux and I have both major versions of Python installed by default. All I have to do eventually is to install a module if needed.

When I write a script I use Python 3. Version 2 support stops in two years.

In general, you need the proper version to run the script. It's possible to convert it from 2 to 3 using 2to3 but honestly, I never used it so can't tell how it behaves. But here comes another ... thing. If the script needs a third party module this module have to be ported to the same version too.

Most of the modules out there are ported but still, there are some abandoned projects which need a little push.
Almost everyone prefers to code in Python 3 if there is a choice. The script you have downloaded must have been an old one.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#3
Its the same with every other language. As the language progresses there are version conflicts. Every major language has version conflicts. You cant run c++98 compiler on code that was expected to be compiled under c++11, python3.x code on a 2.x interpreter, java9 code on java6, etc.
Recommended Tutorials:
Reply
#4
(Feb-22-2018, 07:27 AM)metulburr Wrote: Its the same with every other language. As the language progresses there are version conflicts. Every major language has version conflicts. You cant run c++98 compiler on code that was expected to be compiled under c++11, python3.x code on a 2.x interpreter, java9 code on java6, etc.

This is why I deleted all the old programming books I collected during the years.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#5
So if it's mostly an issue that arises with just the major two extant versions, I can see dealing with that. I asked because I really think some languages are more prone to conflicts than others. (PHP has presented more issues for me than most.) Well anyway, all your comments make me feel confident about re-installing Python.
Reply
#6
Its mostly been python 2.x and python 3.x. and yes soon everyone will be swayed to 3. However python 3.6 has added quite a bit that previous interpreter versions cannot run compared to the norm.
Recommended Tutorials:
Reply
#7
  • Python 2.7 is supported till 2020, after this date it may be supported by companies as paid service.
  • Python 3 is in Arch Linux and some other distributions already standard
  • Most important third party modules are supporting both Python version.
  • The Numpy developers announced to remove the support for Python 2.7

It is better to use now Python 3, as waiting until 2020 and getting into much trouble.
You should have installed Python 2.7 and Python >=3.5. Many tools still support only Python 2.7.

The situation is now better than 2 years before. But we still have some Python 2.7 dependencies :-/
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#8
(Feb-22-2018, 05:02 PM)DeaD_EyE Wrote: after this date it may be supported by companies as paid service.
Link?
Recommended Tutorials:
Reply
#9
There is no link. I am the source :-D

It's a speculation. That the support for Python 2.7 will stopped 2020 has been announced: https://pythonclock.org/
There is a possibility, that companies doing support for Python 2.7 after 2020, but it's not clear.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#10
Hmm, if that is true, then let it be known that support here will be given for free. I hate when companies take advantage. A lot of people will still be using 2.x after 2020 due to them not having control to update
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Query on choosing Python 3.8.6 version sureshnagarajan 0 1,805 Feb-16-2021, 05:30 AM
Last Post: sureshnagarajan
  Which Python Version? muzikman 15 5,171 Jan-19-2021, 02:16 PM
Last Post: muzikman
  Python/winrt support for python 3.8 version pbvinoth 2 3,689 Jul-08-2020, 02:03 PM
Last Post: snippsat
  Issue with 2 version of python (2.6.6 and 2.7) with pip himupant94 2 3,231 Apr-24-2020, 03:23 AM
Last Post: himupant94
  Default python version on Windows (3.6.x vs 3.6.y) gramakri 1 2,454 May-04-2019, 10:36 PM
Last Post: snippsat
  Old Python-version used by IDLE GeNoS 7 4,218 Apr-13-2019, 08:04 PM
Last Post: Gribouillis
  Trouble installing a old version of python - 3.4.1 alex8obrien 2 2,782 Apr-09-2019, 06:28 AM
Last Post: alex8obrien
  a special version of the python command Skaperen 6 4,139 Apr-06-2019, 02:25 PM
Last Post: Gribouillis
  Distributing custom version of Python touc82 1 2,086 Mar-23-2019, 03:23 PM
Last Post: Larz60+
  Understanding Python version releases venami 3 3,110 Aug-24-2018, 09:56 PM
Last Post: venami

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020