英文:
How to write Yes command as a answer to this question? Thanks
问题
我是编程的绝对初学者。我从ChatGPT中获取了安装Anaconda的代码。然而,我卡在了最后一步。我尝试了几乎所有可能的"yes"变体。能有人帮帮我吗?如何回答最后的问题?谢谢。
anaconda3 v2022.10 [已批准]
anaconda3软件包文件安装已完成。执行其他安装步骤。
软件包anaconda3希望运行'chocolateyinstall.ps1'脚本。
注意:如果您不运行此脚本,安装将失败。
注意:要自动确认下次使用'-y'或考虑:
choco feature enable -n allowGlobalConfirmation
您要运行脚本吗?([Y]是/[A]所有 - 全部是/[N]否/[P]打印):
英文:
I am absolute beginner in coding. I took code from ChatGPT to install Anaconda. However, I stuck at last step. I tried almost all possible variants of yes. Could sb help me, pls? How I can write yes to last question? Thanks.
anaconda3 v2022.10 [Approved]
anaconda3 package files install completed. Performing other installation steps.
The package anaconda3 wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint):
答案1
得分: 3
-
要回答由Chocolatey显示的交互提示,请键入方括号中的字母,对应所需选项,而在您的情况下,选项是
y
(表示[Y]es
),或者要在进行安装时也自动确认后续提示的选项是a
(表示[A]ll - yes to all
)。
不区分大小写。
按Enter以提交您的选择。 -
要**抑制(概念上:自动确认)确认提示**,请按照您引用的说明进行操作:
- 对于给定的安装命令,在其命令行上添加
-y
选项。 - 要持续地抑制确认提示,对于将来的所有Chocolatey安装命令,运行以下一次性命令,从一个提升的会话中运行(以管理员身份运行):
choco feature enable -n allowGlobalConfirmation
- 对于给定的安装命令,在其命令行上添加
英文:
-
To answer an interactive prompt that is being displayed by Chocolatey, type the letter enclosed in
[...]
that corresponds to the desired option, which in your case isy
(for[Y]es
), or - to also auto-confirm subsequent prompts, if any, during the installation at hand -a
(for[A]ll - yes to all
).
Case doesn't matter.
Press <kbd>Enter</kbd> to submit your choice. -
To suppress (conceptually: auto-confirm) confirmation prompts, follow the guidance in the note you cite:
- For a given installation command, add the
-y
option on its command line. - To persistently suppress confirmation prompts, for all future Chocolatey installation commands, run the following one-time command, from an elevated session (run as administrator):
choco feature enable -n allowGlobalConfirmation
- For a given installation command, add the
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论