python - 如何避免 conda activate base 在我的 VS Code 编辑器中自动执行?
问题描述
PS E:\Python and Data Science\PythonDatabase> conda activate base
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
PS E:\Python and Data Science\PythonDatabase> & C:/Users/Lenovo/Anaconda3/python.exe "e:/Python and Data Science/PythonDatabase/CourseHelper.py"
Hello World
PS E:\Python and Data Science\PythonDatabase>
解决方案
您可以"python.terminal.activateEnvironment": false
在设置中设置停用您的环境的激活。或者,您可以设置"python.condaPath"
为存在的位置conda
,以便扩展可以适当地使用 conda。
推荐阅读
- r - R:来自 NHANES 的加权样本数据的调整比例
- r - TTR runSD 返回所有 NA
- unit-testing - 选项名称的 CMake 命名约定以生成带有单元测试的项目?
- r - 如何在R中为特定点着色
- python - ValueError:对关闭的文件进行 I/O 操作,同时执行行
- python - 如何使用 Python 有效地重命名文件名?
- c# - 实体框架:在代码中查找所有跨模式查询
- coldfusion - ColdFusion Builder 2018 演示 - Windows 7 Pro 上的键盘快捷键问题
- php - 在 laravel 8 中找不到类“app\models\category”
- django - 将生成的 pdf 保存在 Django 文件夹中