How to install Python using Windows Command Prompt

2019-02-27 09:37发布

Is it possible to install Python from cmd on Windows? If so, how to do it?

1条回答
疯言疯语
2楼-- · 2019-02-27 10:13

https://docs.python.org/3.6/using/windows.html#installing-without-ui

Installing Without UI: All of the options available in the installer UI can also be specified from the command line, allowing scripted installers to replicate an installation on many machines without user interaction. These options may also be set without suppressing the UI in order to change some of the defaults.

To completely hide the installer UI and install Python silently, pass the /quiet option. To skip past the user interaction but still display progress and errors, pass the /passive option. The /uninstall option may be passed to immediately begin removing Python - no prompt will be displayed.

All other options are passed as name=value, where the value is usually 0 to disable a feature, 1 to enable a feature, or a path.

查看更多
登录 后发表回答