从命令行安装python并等待完成
使用以下命令:从命令行安装python并等待完成,python,windows,python-3.x,cmd,Python,Windows,Python 3.x,Cmd,使用以下命令:pythonninstall.exe/quiet installUsers=1 PrependPath=1 但这只是启动了一个后台进程,我想编写脚本,并在安装完成后运行其他命令。如何将其作为后台进程运行 编辑:使用PS:Start Process-nonewindow-Wait结束您可以像这样使用Start/Wait: $ START /WAIT pythoninstall.exe /quiet InstallAllUsers=1 PrependPath=1 这似乎对我有用: S
pythonninstall.exe/quiet installUsers=1 PrependPath=1
但这只是启动了一个后台进程,我想编写脚本,并在安装完成后运行其他命令。如何将其作为后台进程运行
编辑:使用PS:
Start Process-nonewindow-Wait结束您可以像这样使用Start/Wait:
$ START /WAIT pythoninstall.exe /quiet InstallAllUsers=1 PrependPath=1
这似乎对我有用:
Start-Process -FilePath ./python-3.7.6-amd64.exe -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1" -NoNewWindow -Wait
这对我不起作用,因为我在一个集装箱里运行它你的集装箱图像是什么?