Enoch Ou
Enoch Ou

Reputation: 21

Invalid python path when configuring VS Code's python virtual environment

My goal is to use the VS Code's python debugger with a venv under a UNC path. I've tried setting the default interpreter path (settings.json) and also the debugger's python path (launch.json). The path is in the format of: \\dfsname\subfolder\tools\venv\Scripts\python.exe

But I keep getting the error message: The Python path in your debug configuration is invalid.

Notes:

Upvotes: 0

Views: 801

Answers (1)

Enoch Ou
Enoch Ou

Reputation: 21

VS Code requires the slashes to be in the other direction in its configuration files. Everything worked when I set the path to be in the format of: //dfsname/subfolder/tools/venv/Scripts/python.exe.

Upvotes: 0

Related Questions