【问题标题】:I get this error when trying flutter upgrade尝试颤振升级时出现此错误
【发布时间】:2021-07-13 12:49:47
【问题描述】:

我在尝试flutter upgrade时收到此错误

& : The term 'C:\Users\USER\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\USER\Documents\WindowsPowerShell\profile.ps1:4 char:4
+ (& "C:\Users\USER\anaconda3\Scripts\conda.exe" "shell.powershell" "ho ...
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\USER\a...ripts\conda.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

目前,我的系统中没有安装 anaconda

【问题讨论】:

    标签: flutter


    【解决方案1】:

    Anaconda 是 Python 的一个发行版,它与 Flutter 没有任何关系。 确保在终端中编写正确的命令。

    【讨论】:

    • 对不起,正确的命令是什么意思?我刚刚在安装了flutter的文件夹中打开了cmd并尝试了flutter upgrade,我得到了这个错误。还有什么我应该做的吗?在我尝试这个之前,Flutter 工作正常。我是 Flutter 新手,所以不太了解。
    • 这很奇怪,请仔细检查您的环境路径,阅读此文档以获取说明flutter.dev/docs/get-started/install/windows
    猜你喜欢
    • 2020-06-20
    • 2020-07-22
    • 2021-12-24
    • 2021-03-05
    • 1970-01-01
    • 2021-04-24
    • 2021-11-26
    • 2019-07-20
    • 2021-10-22
    相关资源
    最近更新 更多