Debugger uses base conda environment

I created a conda environment (foobar) at the command line with some specific modules. Then created a PyCharm project that uses that foobar env. If I run the program inside PyCharm the program uses the correct foobar env's python. However, the debugger uses the conda base env. Changing line 90 in workspace.xml from

<option name="SDK_HOME" value="C:\ProgramData\Anaconda3\python.exe" />


<option name="SDK_HOME" value="C:\Anaconda\envs\foobar\python.exe" />

(where the path is changed to the python in the required environment) works.

The version of python in the PyCharm terminal is the correct one, it's just the debugger.

Something to look into perhaps.

Thanks, Alex


PyCharm 2021.1.3 (Professional Edition)

Build #PY-211.7628.24,bulit on June 30 2021

Runtime version: 11.0.11+9-b1341.60 amd64

Windows 10 Pro 64-bit


1 comment
Comment actions Permalink


Unfortunately, I had no luck reproducing the issue. Created a new project with new conda environment, the debugger is using correct interpreter in my case.

If you know the steps to reproduce the issue (perhaps a certain way to setup the environment), we would appreciate a ticket to



Please sign in to leave a comment.