Sublime Forum

Use WSL Python in Windows 11 ST4?

#1

I was wondering whether it was possible to use a python executable from WSL2 (Ubuntu 22) as interpreter in the anaconda package in ST4 Build 4143 on Windows 11 22H2.

So far, I’ve tried different paths

{
	"python_interpreter": "/home/<username>/mambaforge/envs/bio/bin/python",
	"python_interpreter": "wsl /home/<username>/mambaforge/envs/bio/bin/python",
	"python_interpreter": "wsl \\\\wsl$\\Ubuntu\\home\\<username>\\mambaforge\\envs\\bio\\bin\\python",
	"python_interpreter": "wsl \\\\wsl.localhost\\Ubuntu\\home\\<username>\\mambaforge\\envs\\bio\\bin\\python",
	"python_interpreter": "wsl --exec /home/<username>/mambaforge/envs/bio/bin/python"
}

But all my tries ended with
anaconda_interpreter

0 Likes

#2

That’s possible if the calling plugin performs correct path translations for all kinds of path-like command line arguments.

Anaconde would need to add support for it.

0 Likes