gpt4 book ai didi

windows - 为什么安装Chocolatey时PowerShell是 "not recognized"?

转载 作者:可可西里 更新时间:2023-11-01 10:58:11 26 4
gpt4 key购买 nike

我去了Chocolatey website并复制安装文本并粘贴到管理员 cmd.exe(使用 Windows 7)。当我运行命令时,我得到:

'powershell' is not recognized as an internal or external command, operable program or batch file.

GitHub article巧克力安装说明说:

This really is the easiest method because it requires no configuration of PowerShell prior to executing it.

最佳答案

事实证明,@balint 关于路径不正确的说法是正确的。路径变量在某些时候已被替换而不是附加到。附加之前删除的所有路径后,我能够成功安装 Chocolatey!

you have some faulty PowerShell installation, or it is missing from the Windows PATH variable. Run in an administrator cmd:

cmd> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

关于windows - 为什么安装Chocolatey时PowerShell是 "not recognized"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30720496/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com