本文最后更新于 2026年5月4日。
我已经卸载conda和anaconda了,还报错
* 还原的历史记录
& : The term 'C:\ProgramData\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\weiyo\Documents\WindowsPowerShell\profile.ps1:4 char:4
+ (& "C:\ProgramData\Anaconda3\Scripts\conda.exe" "shell.powershell" "h ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\ProgramData\...ripts\conda.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
解决办法
-
打开文件资源管理器。
-
在地址栏直接粘贴并回车:
%UserProfile%\Documents\WindowsPowerShell\ -
在这个文件夹里,你应该能看到一个名为
profile.ps1或Microsoft.PowerShell_profile.ps1的文件。 -
右键点击它,选择“使用记事本打开”。

-
删掉里面所有关于
conda的内容。