Another version of this product is already installed setup fail

Hi

I have several versions of python installed on my PC for a few reasons. I use the amd64 installers from Index of /ftp/python/ .

I noticed now, while attempting to install python 3.11.5 while having 3.11.7 installed that i get setup failed with the message “Another version of this product is already installed…. ” See image below for the rest of the message.

After some testing i found out the following.
You can install newer version of a patch of a minor release (e.g 3.10.9 while you already have 3.10.7) but you can’t install it in the reverse order. (e.g 3.10.7 if you already had 3.10.9).

This doesn’t appear to be the case with different minor versions tho.

Is there a way to circumvent this and install lower versions without all the hassle?

Regards

Try installing it in a different directory.

Didn’t work. Doesn’t matter which directory it is in it seems.

… starting from the C: root directory?

Say:

C:\path_1\rest_of_directory_python_a

C:\path_2\rest_of_directory_python_b

and not:

C:\path_1\rest_of_directory_python_a

C:\path_1\rest_of_directory_python_b

that is, changing the first folder (creating a new one) after the C: drive.

If that doesn’t work, then indeed odd.

Is there a good reason you want to install older patches of python? if no, i recommend you to not do that.

Python patch updates are mostly done to fix unwanted behavior especially security vulnerabilities.

if you want to have different packages installed, use virtual environments

In fact, some site packages use the strange features in python, but some of the “feature” change to “bug” and fixed so that they cannot work in the new versions.

The pyenv can install the old version. On windows, use pyenv-win instead. Run the code below:

pyenv install 3.11.5
pyenv global 3.11.5
python311

and it run in version 3.11.5
To download pyenv, you can visit the internet above and download the code then add the important path (such as “bin”, “shims”) to system environment path. Or use git to clone the storage:

git clone https://github.com/pyenv/pyenv

Or

git clone https://github.com/pyenv-win/pyenv-win
1 Like

Thanks @Locked-chess-official for the workaround. I’ll have a look.