我正在尝试从命令行(cmd.exe
)以批处理模式静默地安装Miniconda,如下所述:
https://docs.anaconda.com/anaconda/install/silent-mode/
To run the the Windows installer for Miniconda in silent mode, use the /S argument. The following optional arguments are supported:
/InstallationType=[JustMe|AllUsers]—Default is``JustMe``. /AddToPath=[0|1]—Default is 1’ /RegisterPython=[0|1]—Make this the system’s default Python. 0 indicates JustMe, which is the default. 1 indicates AllUsers. /S—Install in silent mode. /D=<installation path>—Destination installation path. Must be the last argument. Do not wrap in quotation marks. Required if you use /S.
All arguments are case-sensitive.
EXAMPLE: The following command installs Miniconda for the current user without registering Python as the system’s default:
start /wait "" Miniconda3-latest-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /S /D=%UserProfile%\Miniconda3
但是,当我尝试它时,为\D
提供的参数实际上没有任何作用。例如,我的命令如下所示:
E:\> start /wait "" Miniconda3-4.6.14-Windows-x86_64.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /S /D=%CD%\Miniconda
它应该安装在当前目录(E:drive的根目录)中名为“Miniconda”的目录中
但是,它安装到C:\Users\<my_username>\Miniconda3
,默认安装位置。你知道吗
这是虫子,还是我做错了什么?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐