gpt4 book ai didi

python - 如何避免 conda activate base 在我的 VS Code 编辑器中自动执行?

转载 作者:行者123 更新时间:2023-12-04 12:19:41 24 4
gpt4 key购买 nike

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在您的设置中设置为 deactivate activation of your environment .或者,您可以设置 "python.condaPath"where conda exists所以扩展可以适本地使用 conda。

关于python - 如何避免 conda activate base 在我的 VS Code 编辑器中自动执行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60951814/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com