This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Adding additional python installations to py launcher
Type: behavior Stage:
Components: Windows Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: evanTO, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2019-08-14 19:39 by evanTO, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg349740 - (view) Author: (evanTO) Date: 2019-08-14 19:39
I have four instances of Python installed on my machine, 2.7x32 & 3.7x32 that I installed manually into their default locations, and 2.7x64 & 3.4x64 that came pre-packaged with a third party piece of software (SPSS). Py Launcher successfully detects the two installations that I installed manually but cannot see the two installations that came with the third party software.

Here (https://www.python.org/dev/peps/pep-0397/#configuration-file) there is an allusion to there being commands which allow customization of Py launcher within user space (monkeying around with the registry in a corporate environments is often disallowed).

I have created a py.ini file using the [commands] section with respective copies of the following entry: "3.4-64="C:\Program Files\IBM\SPSS\Statistics\24\Python3\python.exe" and saved to "C:\Users\<USER>\AppData\Local" but the additional installations do not appear.

I have added the two additional installation directories (and Scripts folders) to the PATH variable and confirmed that the changes persisted (displayed below):

PATH=C:\Program Files (x86)\Python37-32\Scripts\;C:\Program Files (x86)\Python37-32\;C:\Python27\;C:\Python27\Scripts;C:\Program Files\IBM\SPSS\Statistics\24\Python\;C:\Program Files\IBM\SPSS\Statistics\24\Python\Scripts\;C:\Program Files\IBM\SPSS\Statistics\24\Python3\;C:\Program Files\IBM\SPSS\Statistics\24\Python3\Scripts\;

Current result of "py -0p" (List the available pythons with paths)

C:\>py -0p
Installed Pythons found by py Launcher for Windows
 -3.7-32        "C:\Program Files (x86)\Python37-32\python.exe" *
 -2.7-32        C:\Python27\python.exe


Expected result of "py -0p"

C:\>py -0p
Installed Pythons found by py Launcher for Windows
 -3.7-32        "C:\Program Files (x86)\Python37-32\python.exe" *
 -2.7-32        C:\Python27\python.exe
 -3.4-64        "C:\Program Files\IBM\SPSS\Statistics\24\Python3\python.exe"
 -2.7-64        "C:\Program Files\IBM\SPSS\Statistics\24\Python\python.exe"
History
Date User Action Args
2022-04-11 14:59:19adminsetgithub: 82037
2019-08-14 19:39:17evanTOcreate