Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75747 > unrolled thread
| Started by | Edward Diener <eldiener@tropicsoft.invalid> |
|---|---|
| First post | 2014-08-05 13:27 -0400 |
| Last post | 2014-08-05 19:29 -0400 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.lang.python
Controlling py.exe launcher on Windows Edward Diener <eldiener@tropicsoft.invalid> - 2014-08-05 13:27 -0400
Re: Controlling py.exe launcher on Windows Edward Diener <eldiener@tropicsoft.invalid> - 2014-08-05 18:25 -0400
Re: Controlling py.exe launcher on Windows Terry Reedy <tjreedy@udel.edu> - 2014-08-05 19:02 -0400
Re: Controlling py.exe launcher on Windows Terry Reedy <tjreedy@udel.edu> - 2014-08-05 19:29 -0400
| From | Edward Diener <eldiener@tropicsoft.invalid> |
|---|---|
| Date | 2014-08-05 13:27 -0400 |
| Subject | Controlling py.exe launcher on Windows |
| Message-ID | <lrr46j$6am$1@dont-email.me> |
I am trying to control the default version of the py.exe launcher on Windows. I have the Python 2.7.8 and 3.4.1 installed with both the 32 bit and 64 bit versions, all in different directories. I assume that .py and .pyw files are associated with the py.exe launcher. I am trying to control which version starts through a py.ini file in the same directory as the py.exe file in the 3.4.1 version last installed. If I specify in the [defaults] section of py.ini: python=3.4 then launching py.exe will show: Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AM D64)] on win32 If I specify: python=3.4-32 then launching py.exe will show: Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win 32 Is it really true that I cannot specify the 32 bit version in the .ini file or am I doing something wrong here ?
[toc] | [next] | [standalone]
| From | Edward Diener <eldiener@tropicsoft.invalid> |
|---|---|
| Date | 2014-08-05 18:25 -0400 |
| Message-ID | <lrrlkt$8a6$2@dont-email.me> |
| In reply to | #75747 |
On 8/5/2014 1:27 PM, Edward Diener wrote: > I am trying to control the default version of the py.exe launcher on > Windows. I have the Python 2.7.8 and 3.4.1 installed with both the 32 > bit and 64 bit versions, all in different directories. I assume that .py > and .pyw files are associated with the py.exe launcher. > > I am trying to control which version starts through a py.ini file in the > same directory as the py.exe file in the 3.4.1 version last installed. > > If I specify in the [defaults] section of py.ini: > > python=3.4 > > then launching py.exe will show: > > Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 > bit (AM > D64)] on win32 > > If I specify: > > python=3.4-32 > > then launching py.exe will show: > > Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit > (AMD64)] on win > 32 > > Is it really true that I cannot specify the 32 bit version in the .ini > file or am I doing something wrong here ? After uninstalling my Python versions and re-installing them, everything works properly and I can control the version which py.exe starts from the py.ini file.
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2014-08-05 19:02 -0400 |
| Message-ID | <mailman.12680.1407279808.18130.python-list@python.org> |
| In reply to | #75747 |
On 8/5/2014 1:27 PM, Edward Diener wrote: > I am trying to control the default version of the py.exe launcher on > Windows. I have the Python 2.7.8 and 3.4.1 installed with both the 32 > bit and 64 bit versions, all in different directories. I assume that .py > and .pyw files are associated with the py.exe launcher. > > I am trying to control which version starts through a py.ini file in the > same directory as the py.exe file in the 3.4.1 version last installed. > > If I specify in the [defaults] section of py.ini: > > python=3.4 > > then launching py.exe will show: > > Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 > bit (AM > D64)] on win32 > > If I specify: > > python=3.4-32 This looks correct according to the manual. > > then launching py.exe will show: > > Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit > (AMD64)] on win > 32 > > Is it really true that I cannot specify the 32 bit version in the .ini > file or am I doing something wrong here ? First try > py -3.4-32 on the command line to make sure that py can find and launch that version. -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2014-08-05 19:29 -0400 |
| Message-ID | <mailman.12682.1407281409.18130.python-list@python.org> |
| In reply to | #75747 |
On 8/5/2014 7:02 PM, Terry Reedy wrote: > On 8/5/2014 1:27 PM, Edward Diener wrote: >> I am trying to control the default version of the py.exe launcher on >> Windows. I have the Python 2.7.8 and 3.4.1 installed with both the 32 >> bit and 64 bit versions, all in different directories. I assume that .py >> and .pyw files are associated with the py.exe launcher. >> >> I am trying to control which version starts through a py.ini file in the >> same directory as the py.exe file in the 3.4.1 version last installed. >> >> If I specify in the [defaults] section of py.ini: >> >> python=3.4 >> >> then launching py.exe will show: >> >> Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 >> bit (AM >> D64)] on win32 >> >> If I specify: >> >> python=3.4-32 > > This looks correct according to the manual. > >> >> then launching py.exe will show: >> >> Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit >> (AMD64)] on win >> 32 >> >> Is it really true that I cannot specify the 32 bit version in the .ini >> file or am I doing something wrong here ? > > First try > py -3.4-32 on the command line to make sure that py can find > and launch that version. I see you already fixed things by reinstalling. -- Terry Jan Reedy
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web