Christian Korneck <christ...@korneck.de> added the comment:
for Python 2.7 you can extract the MSI installer (much like a zip file): mkdir "c:\targetdir" msiexec /a "c:\python-2.7.8.amd64.msi" /quiet /norestart TARGETDIR=c:\targetdir msiexec is part of all Windows editions (except for nanoserver). Side note: extracting the MSI does not enable pip. If you need pip, run this on your targetdir: c:\targetdir\python.exe -m ensurepip alternatively, you could perform an unattended installation: msiexec /i "c:\python-2.7.8.amd64.msi" /quiet /norestart Unattended installation also works for Python 3.7: "c:\python-3.7.2-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 These options worked fine for me in windows containers for CI stuff with servercore. The unattended installation of Python 3.7 also worked fine for me in nanoserver. ---------- nosy: +chris-k _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36010> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com