如何避免在我的VS Code编辑器中自动执行conda激活库?

问题描述 投票:0回答:1
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 python-3.x visual-studio-code conda vscode-settings
1个回答
0
投票

您可以在设置中将"python.terminal.activateEnvironment": false设置为deactivate activation of your environment。或者,您可以将"python.condaPath"设置为where conda exists,以便扩展名可以适当地使用conda。

© www.soinside.com 2019 - 2024. All rights reserved.