【发布时间】:2022-07-06 01:32:41
【问题描述】:
不久前开始学习 Python 时,我安装了 Python、Anaconda 和代码编辑器。我记得我在使所有这些正常工作时遇到了问题,我最终使用了我发现的一个 hack,这样我的代码编辑器就可以始终使用 Anaconda 运行 Python。我可能已经添加了一个脚本来执行此操作,但我记不太清了。
现在我不再使用 Anaconda,我删除了该软件,当我使用 PowerShell 时,它总是以错误的方式启动。
我的问题是,我怎样才能摆脱这个?我已经在我的路径中删除了所有提到 Anaconda 的内容(或者至少我尝试过)。
这是我得到的错误:
& : The term 'C:\Users\<MyName>\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\<MyName>\Documents\WindowsPowerShell\profile.ps1:4 char:4
+ (& "C:\Users\<MyName>\Anaconda3\Scripts\conda.exe" "shell.powershell" "h ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\<MyName>\...ripts\conda.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
谢谢
【问题讨论】:
标签: python windows powershell anaconda startup