Spa*_*all 8 python anaconda conda visual-studio-code
我正在尝试构建一个基本的机器学习算法,为此我使用 Python 的 Anaconda 解释器。但是,即使 Visual Studio Code 似乎已将 Conda 识别为解释器,并且我将 Anaconda 3 shell 作为单独的应用程序工作,但我无法让 Conda 在 Visual Studio Code 中工作。
每当我尝试检查 Conda 时,都会收到以下错误:
conda : The term 'conda' 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 line:1 char:1
+ conda activate base
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (conda:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)
我已经尝试了此处链接的修复:“Conda”未被识别为内部或外部命令
然而,他们对我不起作用。我尝试将 Conda 设置为我的路径,但仍然遇到相同的错误。
men*_*oom 20
请尝试以下操作:
conda activate your-env
Run Code Online (Sandbox Code Playgroud)
code
Run Code Online (Sandbox Code Playgroud)
然后 Visual Studio Code 应该识别conda:

| 归档时间: |
|
| 查看次数: |
29616 次 |
| 最近记录: |