Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从命令行安装python并等待完成_Python_Windows_Python 3.x_Cmd - Fatal编程技术网

从命令行安装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

这对我不起作用,因为我在一个集装箱里运行它你的集装箱图像是什么?