Anaconda命令提示窗口赢得';重新安装后,不要打开

Anaconda命令提示窗口赢得';重新安装后,不要打开,anaconda,command-prompt,miniconda,Anaconda,Command Prompt,Miniconda,我不得不卸载然后重新安装miniconda。重新安装后,当我运行时,powershell提示符显示以下消息: & : The term 'C:\Users\jenj0\anaconda3\Scripts\conda.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path w

我不得不卸载然后重新安装miniconda。重新安装后,当我运行时,powershell提示符显示以下消息:

& : The term 'C:\Users\jenj0\anaconda3\Scripts\conda.exe' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At C:\Users\jenj0\Documents\WindowsPowerShell\profile.ps1:4 char:4
+ (& "C:\Users\jenj0\anaconda3\Scripts\conda.exe" "shell.powershell" "h ...
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\jenj0\...ripts\conda.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

(base) PS C:\Users\jenj0>
此外,miniconda命令提示符窗口根本不会启动

我试着寻找解决办法。例如,我尝试过,但当我尝试启动cmd.exe时,我看到一个窗口快速打开然后关闭,什么也没有发生


我还尝试过再次卸载/重新安装miniconda,但遇到了相同的问题。我这么做是因为我在运行程序时遇到了问题。现在我离解决这个问题还有一段距离。

powershell的启动脚本中有一些无效路径,还有
cmd
的注册表项,它们来自您以前的anaconda安装

你说你卸载了anaconda,然后安装了miniconda,所以我假设路径

C:\Users\jenj0\anaconda3
不存在,现在是

C:\Users\jenj0\miniconda3
以下是您要做的:

  • Powershell
    (来自您的错误消息)正在尝试读取
    C:\Users\jenj0\Documents\WindowsPowerShell\profile.ps1
    ,其中包含对无效路径的引用。备份所述文件,然后删除包含无效路径的所有行
  • cmd
    (和蟒蛇提示)。运行regedit,然后删除对位于的键中无效路径的引用

  • 您以前是否在
    C:\Users\jenj0\anaconda3
    安装过anaconda,现在已不再存在。我安装了anaconda,然后卸载了它。当我重新安装它时,我得到了上面发布的错误代码,anaconda提示窗口将不再打开。
    Computer\HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
    Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun