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?
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: