Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
windows install py.exe
#1
I just installed Python 3.7.0 on a Windows machine. Why does the default install put py.exe, pyw.exe, and pyshellext.amd64.dll in the \\Windows directory? That's very, very bad. No application (ie. Python) has any busy screwing around with the OS files/dirs. When you install on Linux do you mess around with /sbin? Linux /sbin is the same as Windows \\Windows. You should not be putting things in either of those locations. Why not move those 3 files to the installed location for Python370. Since it's in the path ahead of windows they should load and work just fine. This can also create huge problems if you have multiple versions of Python installed (Py3, Py2, Anaconda2, Anaconda3). Putting files in the \\Windows dir is just bad programming. Please correct or tell me why such a bad policy.
Reply
#2
(Sep-16-2018, 08:31 PM)fulkgl Wrote: Why does the default install put py.exe, pyw.exe, and pyshellext.amd64.dll in the \\Windows directory?
Because of easy access to other Python version installed.
Main version in Path is always access with python all other version use py.
λ python -V
Python 3.7.0

C:\
λ py -3.4 -V
Python 3.4.2

C:\
λ py -2.7 -V
Python 2.7.9

λ # Using pip to install to 2.7                                                                            
λ py -2.7 -m pip install logzero                                                                               
Requirement already satisfied: logzero in c:\python27\lib\site-packages

# Just pip always install to main version in path
C:\
λ pip -V
pip 18.0 from c:\python37\lib\site-packages\pip (python 3.7)
See that i have full access to all version,no need to change directory or do change to files of Python versions.
Quote:This can also create huge problems if you have multiple versions of Python installed (Py3, Py2, Anaconda2, Anaconda3).
No py will not interner with Anaconda.
Anaconda use python.exe to execute.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python 2.7.14 install on Windows missing Scripts directory and pip #bug bluejedi 4 16,511 Dec-15-2017, 04:12 PM
Last Post: bluejedi
  [PyPa] Problems with Install PIP on Windows ! JamieVanCadsand 7 9,764 Sep-25-2017, 10:37 AM
Last Post: JamieVanCadsand
  Can I install Python 3.6.2 on Windows 10 for All Users? DAWO 1 29,910 Sep-15-2017, 01:31 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020