【问题标题】:How can I remove this script starting in the background and messing up with PowerShell?如何从后台开始删除此脚本并弄乱 PowerShell?
【发布时间】: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


    【解决方案1】:

    您的 Powershell 配置文件中可能有一些内容。 用记事本打开它并删除所有不需要的项目:

    notepad $profile
    

    【讨论】:

      猜你喜欢
      • 2018-06-24
      • 1970-01-01
      • 1970-01-01
      • 2015-03-07
      • 1970-01-01
      • 1970-01-01
      • 2021-05-08
      相关资源
      最近更新 更多