如何将“是”的命令作为对这个问题的答案写入?谢谢。

huangapple go评论64阅读模式
英文:

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 is y (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

huangapple
  • 本文由 发表于 2023年2月19日 01:23:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/75495074.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定