Skip to content

Debugging Python File with Conda Environment Results in Permission Denied #691

@rm3028

Description

@rm3028

Hi,

When I try to debug a Python file using the Conda environment detected by the VS Code Python extension, it seems to use an incorrect configuration. The console shows the following automatically generated command and results in a Permission denied error:

/usr/bin/env /home/jovyan/.conda/envs/py310 /home/jovyan/.vscode-server/extensions/ms-python.debugpy-2025.10.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 40869 -- /home/jovyan/test.py
/usr/bin/env: ‘/home/jovyan/.conda/envs/py310’: Permission denied

It appears that the extension tries to run the environment path itself as a command, which fails because it is a directory, not an executable.

The correct behavior should be to execute the Python binary like this:

/usr/bin/env /home/jovyan/.conda/envs/py310/bin/python ...

Could you please help me fix or work around this issue?

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions