Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install python on Windows without an MSI installer?

Take python 3.6.x for example. The last windows installer for python 3.6.x is 3.6.8: no more installers for 3.6x version that comes later (see https://www.python.org/downloads/windows/) 3.6.8 happens to be the last maintenance release of python3.6, I don't know if it is somehow related to not propose a package installer for windows but only sources.

Practical problem here: How should I proceed to install 3.6.12 on Windows?

Please don’t simply advice « Install 3.7 or 3.8, it is more recent ». I know that 3.6 is not the latest, but sometimes you have to stick with a particular version for support or compatibility.

Since I have to use 3.6.x, I am looking for the latest version available in this branch (currently 3.6.12) to still benefit from security patches.

This gives two path:

  1. install 3.6.8 with MSI installer then upgrade to 3.6.12 from source,
  2. install 3.6.12 from source.

What are the steps involved for option 1 or 2?

like image 340
kral2 Avatar asked Sep 01 '20 11:09

kral2


People also ask

How do I install Python silently?

To completely hide the installer UI and install Python silently, pass the /quiet option. To skip past the user interaction but still display progress and errors, pass the /passive option. The /uninstall option may be passed to immediately begin removing Python - no confirmation prompt will be displayed.

Is it possible to create my own MSI for Python?

It is possible to create your own MSI installer from the source distributions at https://www.python.org/downloads/source/. This is what I did to install Python 3.6.12 on my Windows machine.

How to install Python on Windows machine?

Here are the steps to install Python on Windows machine. Follow the link for the Windows installer python-XYZ.msi file where XYZ is the version you need to install. To use this installer python-XYZ.msi, the Windows system must support Microsoft Installer 2.0.

How can I try Python without installing it?

Whatever your reason, there are many ways to try Python without installing it. Specifically, there are 3 and 1/2 ways: 1. Portable Python distributions I have tried two portable distributions: Portable Python that comes with PyCharm, PyScripter and Ipython (command line).

What version of python do I need to install?

It’s installed, the path variable is set, and you’re off to the races. If you want to learn the newest version of Python, you’ll need to install Python 3. You can install it alongside Python 2.7 with no problems, so go ahead and download and run the installer now.


Video Answer


1 Answers

It is possible to create your own MSI installer from the source distributions at https://www.python.org/downloads/source/. This is what I did to install Python 3.6.12 on my Windows machine.

In each source distribution, the files at PCBuild/readme.txt and Tools/msi/README.txt provide guidance for how to build your own Python installer. If you have not built Python from source before on Windows, this may be a challenge to set up.

If you do not want to build the installer yourself, you can download unofficial installers from https://github.com/adang1345/PythonWindows. These are the installers that I built recently as part of a personal project.

like image 109
adang1345 Avatar answered Oct 23 '22 21:10

adang1345