Error when trying to use conda on vs code: conda : The term #39;conda#39; is not recognized as the name of a cmdlet(尝试在VS代码上使用Conda时出错:Conda:术语Conda无法识别为cmdlet的名称)
本文介绍了尝试在VS代码上使用Conda时出错:Conda:术语Conda无法识别为cmdlet的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试构建一个基本的机器学习算法,为此,我使用了Python的蟒蛇解释器。然而,即使visual studio代码似乎已经将conda识别为解释器,并且我让anaconda3 shell作为单独的应用程序工作,我也无法让conda处理VS代码。每当我尝试检查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
我已尝试了此处链接的修复程序:'Conda' is not recognized as internal or external command
然而,它们对我并不起作用。我尝试将Conda设置为我的路径,但仍然收到相同的错误。提前感谢!
推荐答案
尝试以下操作:
- 运行Anaconda/Miniconda
- 激活那里的环境:
conda activate your-env
- 从蟒蛇/Miniconda终端启动Visual Studio代码:
code
则Visual Studio代码应识别conda
:
这篇关于尝试在VS代码上使用Conda时出错:Conda:术语Conda无法识别为cmdlet的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:尝试在VS代码上使用Conda时出错:Conda:术语Conda无法识别为cmdlet的名称


基础教程推荐
猜你喜欢
- 求两个直方图的卷积 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 包装空间模型 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01