Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different python environments used in debug and run mode in Visual Studio Code

In my Ubuntu machine I have two Python interpreters, native Python and conda. When I run a script in run more in Visual Studio Code, the native Python interpreter is used and in debug mode, the conda interpreter is used. Where does this difference come and how to make the run mode use also conda interpreter?

like image 621
cerebrou Avatar asked Feb 03 '26 19:02

cerebrou


1 Answers

The possible solution is to auto-activate the base conda environment:

conda config --set auto_activate_base True
like image 96
cerebrou Avatar answered Feb 06 '26 10:02

cerebrou