Python Forum
How many Python versions do I need?
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How many Python versions do I need?
#1
I'm about to upgrade a Window machine from Win 7 to Win 10, with a clean install. So I will have to reinstall all my apps, including Python.

Currently, under Win 7, I see that three versions are installed: Python 2.6.6, 2.7.8, and 3.4.2. I'm not quite sure why so many versions. I didn't install all of them. I'm guessing that some other Python app auto-installed some of them, but I don't know.

My question is: If after doing the clean install of Win 10, if I just install the latest version of Python, will all the Python apps on my machine still run? Or will I have to install all three existing versions?

~ Thanks in advance
~ Ken
Reply
#2
It depends on the Python apps on your machine. If they were written for 2.x, they may not run in the latest 3.x version. Version 3.0 broke backward compatibility. However, as of three days ago no version before 3.0 is supported. So I would recommend installing the latest version, and then if any of your applications don't run, look for updated versions of those applications that do run in 3.x.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
Thanks; I'll try that.

Is it true that an app written for a given dot-release (e.g. 3.4.2) should still work under the latest release in that same series (e.g. the latest release of 3.x)?

Also, even though 2.x support is discontinued, is it still possible to download and install the last version of 2.x, if necessary?
Reply
#4
(Jan-05-2020, 03:49 AM)kenatsun Wrote: Is it true that an app written for a given dot-release (e.g. 3.4.2) should still work under the latest release in that same series (e.g. the latest release of 3.x)?

Yes. Code from 3.0 up should run in the latest release (3.8.1). Of course, code written in 3.8.1 might not run in 3.4.2.

(Jan-05-2020, 03:49 AM)kenatsun Wrote: Also, even though 2.x support is discontinued, is it still possible to download and install the last version of 2.x, if necessary?

Yes. Older releases are available here.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 312 Feb-17-2024, 12:43 PM
Last Post: deanhystad
Question log.exception() without arguments in old Python versions? cthart 5 1,152 Nov-19-2022, 07:09 PM
Last Post: Gribouillis
  Python versions with libexpat fixes raghupcr 5 2,477 Feb-24-2022, 06:26 PM
Last Post: raghupcr
  Installed versions of Python SamHobbs 5 2,502 Sep-02-2021, 02:28 PM
Last Post: jefsummers
  Different versions of Python3 and Python Led_Zeppelin 2 2,310 Jun-16-2021, 05:31 AM
Last Post: snippsat
  Python Versions ThatTamyBot 2 2,681 Mar-11-2021, 11:27 AM
Last Post: ThatTamyBot
  I seem to have two versions of python 3.7.9 installed miner_tom 7 4,430 Nov-22-2020, 06:42 PM
Last Post: miner_tom
  python and py report different versions lordvold 3 2,638 Nov-27-2019, 11:01 PM
Last Post: lordvold
  Changing Python Versions in Ubuntu 16.04 ErnestTBass 2 3,123 Jan-10-2019, 05:45 PM
Last Post: metulburr
  Mixing 2 versions of python in one C++ application satya 0 2,528 Aug-18-2017, 12:31 PM
Last Post: satya

Forum Jump:

User Panel Messages

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