Python install old version

Releases

Python releases are now listed on the downloads page.

This page only provides links to older releases which are not listed in the release database.

  • Python 1.6.1 (September 2000)
  • Python 1.5.2 (April 1999)
  • Older source releases (1.0.1 — 1.6)
  • Ancient source releases (pre 1.0)
  • Python 1.5 binaries
  • Python 1.4 binaries
  • Python 1.3 binaries
  • Python 1.2 binaries
  • Python 1.1 binaries

The PSF

The Python Software Foundation is the organization behind Python. Become a member of the PSF and help advance the software and our mission.

  • About
    • Applications
    • Quotes
    • Getting Started
    • Help
    • Python Brochure
    • All releases
    • Source code
    • Windows
    • macOS
    • Other Platforms
    • License
    • Alternative Implementations
    • Docs
    • Audio/Visual Talks
    • Beginner’s Guide
    • Developer’s Guide
    • FAQ
    • Non-English Docs
    • PEP Index
    • Python Books
    • Python Essays
    • Diversity
    • Mailing Lists
    • IRC
    • Forums
    • PSF Annual Impact Report
    • Python Conferences
    • Special Interest Groups
    • Python Logo
    • Python Wiki
    • Code of Conduct
    • Community Awards
    • Get Involved
    • Shared Stories
    • Arts
    • Business
    • Education
    • Engineering
    • Government
    • Scientific
    • Software Development
    • Python News
    • PSF Newsletter
    • PSF News
    • PyCon US News
    • News from the Community
    • Python Events
    • User Group Events
    • Python Events Archive
    • User Group Events Archive
    • Submit an Event
    • Developer’s Guide
    • Issue Tracker
    • python-dev list
    • Core Mentorship
    • Report a Security Issue

    Источник

    How to install a specific Python version on Ubuntu

    It is often the case that we install a program on our system, and it turns out that it’s the wrong version. This can lead to compatibility and performance issues since it may not communicate with third-party modules properly. Similar is the case with Python, and as vigilant programmers, we must figure out the correct version that we need. Therefore, in this guide, we will show you how to install a specific version of Python on your Ubuntu system.

    Python on Ubuntu

    Usually, Python comes preinstalled in many Linux distributions. In our case, we have Python3. Start a new Terminal session through the Activities menu or by pressing Ctrl + Alt +T on your keyboard. To be on the safe side of things, you can check whether your distro has Python installed or not by running the following command.

    Or, if you are running Python 3 like us, the command below ought to get the job done.

    You can see in the image that the system is running Python 3.8.5. It is advised to upgrade your version of Python if you are running Python 3.3 or below. Stick around to find out more on which version you should get, as we will discuss that in the final segment of the article.

    In the sections below, we will demonstrate how you can install any version of Python on your system, whether be it an updated one or an outdated one.

    Installing a specific version of Python

    The first step to installing Python is to install the necessary dependencies and packages that are required for its installation. However, to install these dependencies, you must have the multiverse repository enabled. You can enable it by running the command given below.

    Once that is out of the way, we move on to installing the first dependency. Run the command below to proceed.

    It should finish downloading and installing in a few moments. Once it is done, move on to the next one by running the command below.

    $ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

    It is a long and complicated command so simply copy-paste it into your Terminal to avoid any typing errors.

    Having done that, we move on to downloading Python and installing it. For the sake of showing you how to install a specific version, we will be downgrading our Python from 3.8.5 to Python 2.7.

    First, we change the current directory to the Downloads folder where we wish to download the package. This can be done by running the command below.

    The next step is to “wget” the package from the Python website.

    Click here to access the location from where you can select any version of Python of your liking. All that needs to be amended in the wget command is the link.

    Having successfully downloaded a specific version of Python, the final steps are simple and easy. First, we will extract the package through the command below.

    You can replace the version number as Python-version.tgz according to your package.

    The next steps include opening the Python directory, configuring the files, and installing it. Run the commands below in the given order to proceed.

    The installation process, while it is straightforward and simple, should take a few minutes to complete. Once it’s done, you can check whether the installation was successful or not by simply running the commands we mentioned at the start.

    As you can tell from the image, we have successfully downgraded from Python 3.8.5 to Python 2.7.12. You can do the same for any particular version of your choice.

    Why you should install Python 3.5 or later

    Now that we have covered the meat of the matter let’s talk about which Python version you should get and why.

    Let’s start with the numbers. It makes sense that as time passes by, a utility or programming language progresses in terms of features and performance. Python 2.0 was released in 2000, Python 2.7 in 2010, whereas Python 3.0 was released in 2008, and Python 3.6 in 2016. The latest versions have more tools and libraries at your disposal, so it makes sense to use the later versions. However, it is understandable if you are trying to install an outdated version on purpose if some feature you need was removed later.

    Python 2.0 is still used in many Linux systems as the default version. Some companies also use Python 2 for all their work. However, as the technology progresses, more and more companies are moving toward Python3. For instance, Instagram migrated its code-base from Python 2.7 to Python 3 in 2017. Similarly, Facebook is catching up and is upgrading its infrastructure to Python 3.4 and later.

    Furthermore, Python 3 is easier to understand and learn for beginners. So if you happen to be just starting off with this programming language, it’s better to leave the veterans to the old ones and start your journey with a fresh and minted version of Python. In short, for those who haven’t already, consider upgrading your Python to version 3.5 or later.

    Conclusion

    In the modern era of computing, it is pertinent that we keep our systems updated, our software free of viruses, and our utilities upgraded to their latest versions. This way, we can make our daily tasks easier, simpler, and accurate. So being a programmer or developer helps to have the latest version of Python up and running on your system.

    Источник

    Debian User Forums

    I am running Debian testing and have installed python 3.8.2.

    For a particular software I now need python 3.7.

    Is there any sensible way that I could install such an older version via aptitude so that both versions can coexist?

    Administrator

    sunrat Administrator
    Posts: 5594 Joined: 2006-08-29 09:12 Location: Melbourne, Australia Has thanked: 94 times Been thanked: 309 times

    Re: installing older version of python3

    #2 Post by sunrat » 2020-10-22 00:51

    Your mysterious undisclosed «particular software» will probably work with python3.8 so just symlink it:

    ln -s /usr/bin/python3.8 python3.7
    ln -s /usr/bin/python3 python3.7

    This actually and surprisingly worked for me for one application which was looking for python2 after I had removed python2 in sid, just symlinked python2 to python3. Not guaranteed that would work for all python2 applications but much more likely it would work for python3.7 to 3.8.

    “ computer users can be divided into 2 categories:
    Those who have lost data
    . and those who have not lost data YET ” Remember to BACKUP!

    Re: installing older version of python3

    #3 Post by morgon » 2020-10-22 01:21

    Actually (and not so surprisingly as it is the topic of several issues) the GUI-framework kivy does not work (yet) with python 3.8.

    Unfortunately I want to run katrain which does depend on it, so your hack does not work for me.

    Administrator

    sunrat Administrator
    Posts: 5594 Joined: 2006-08-29 09:12 Location: Melbourne, Australia Has thanked: 94 times Been thanked: 309 times

    Re: installing older version of python3

    #4 Post by sunrat » 2020-10-22 01:51

    Looks like you can install kivy on python3.8 with pip — https://github.com/kivy/kivy/issues/656 . -560039155

    “ computer users can be divided into 2 categories:
    Those who have lost data
    . and those who have not lost data YET ” Remember to BACKUP!

    Re: installing older version of python3

    #5 Post by morgon » 2020-10-22 02:28

    It’s not working with pip on my system.

    Please do not «help» me anymore.

    Administrator

    sunrat Administrator
    Posts: 5594 Joined: 2006-08-29 09:12 Location: Melbourne, Australia Has thanked: 94 times Been thanked: 309 times

    Re: installing older version of python3

    #6 Post by sunrat » 2020-10-22 04:03

    morgon wrote: It’s not working with pip on my system.

    Please do not «help» me anymore.

    “ computer users can be divided into 2 categories:
    Those who have lost data
    . and those who have not lost data YET ” Remember to BACKUP!

    Re: installing older version of python3

    #7 Post by sickpig » 2020-10-22 08:08

    morgon wrote: Is there any sensible way that I could install such an older version via aptitude so that both versions can coexist?

    is Debian’s very own tool to manage multiple versions of packages like python. A gui front-end is available via galternatives.

    Источник

    Debian User Forums

    I am running Debian testing and have installed python 3.8.2.

    For a particular software I now need python 3.7.

    Is there any sensible way that I could install such an older version via aptitude so that both versions can coexist?

    Administrator

    sunrat Administrator
    Posts: 5594 Joined: 2006-08-29 09:12 Location: Melbourne, Australia Has thanked: 94 times Been thanked: 309 times

    Re: installing older version of python3

    #2 Post by sunrat » 2020-10-22 00:51

    Your mysterious undisclosed «particular software» will probably work with python3.8 so just symlink it:

    ln -s /usr/bin/python3.8 python3.7
    ln -s /usr/bin/python3 python3.7

    This actually and surprisingly worked for me for one application which was looking for python2 after I had removed python2 in sid, just symlinked python2 to python3. Not guaranteed that would work for all python2 applications but much more likely it would work for python3.7 to 3.8.

    “ computer users can be divided into 2 categories:
    Those who have lost data
    . and those who have not lost data YET ” Remember to BACKUP!

    Re: installing older version of python3

    #3 Post by morgon » 2020-10-22 01:21

    Actually (and not so surprisingly as it is the topic of several issues) the GUI-framework kivy does not work (yet) with python 3.8.

    Unfortunately I want to run katrain which does depend on it, so your hack does not work for me.

    Administrator

    sunrat Administrator
    Posts: 5594 Joined: 2006-08-29 09:12 Location: Melbourne, Australia Has thanked: 94 times Been thanked: 309 times

    Re: installing older version of python3

    #4 Post by sunrat » 2020-10-22 01:51

    Looks like you can install kivy on python3.8 with pip — https://github.com/kivy/kivy/issues/656 . -560039155

    “ computer users can be divided into 2 categories:
    Those who have lost data
    . and those who have not lost data YET ” Remember to BACKUP!

    Re: installing older version of python3

    #5 Post by morgon » 2020-10-22 02:28

    It’s not working with pip on my system.

    Please do not «help» me anymore.

    Administrator

    sunrat Administrator
    Posts: 5594 Joined: 2006-08-29 09:12 Location: Melbourne, Australia Has thanked: 94 times Been thanked: 309 times

    Re: installing older version of python3

    #6 Post by sunrat » 2020-10-22 04:03

    morgon wrote: It’s not working with pip on my system.

    Please do not «help» me anymore.

    “ computer users can be divided into 2 categories:
    Those who have lost data
    . and those who have not lost data YET ” Remember to BACKUP!

    Re: installing older version of python3

    #7 Post by sickpig » 2020-10-22 08:08

    morgon wrote: Is there any sensible way that I could install such an older version via aptitude so that both versions can coexist?

    is Debian’s very own tool to manage multiple versions of packages like python. A gui front-end is available via galternatives.

    Источник

    Читайте также:  Html button data toggle
Оцените статью