Problem
PyCharm could not detect installed WSL instances, displaying "No Installed Distributions"
Cause
The wsl.exe executable was not included in the system PATH environment variable. PyCharm relies on this variable to locate and interact with WSL instances.
Resolution
-
Verify the location of the
wsl.exeexecutable by running the following command in PowerShell or Command Prompt:where.exe wslThe output should show
C:\Windows\System32\wsl.exe. -
Update the system
PATHenvironment variable to include the directory ofwsl.exe:- Open System Properties → Environment Variables.
- Under System variables, find and select the variable named Path, then click Edit.
- Verify that
C:\Windows\System32is listed. If not, add it to the list.
-
Restart the machine to apply the changes.
After completing the steps, PyCharm should be able to detect WSL instances
Comments
0 comments
Please sign in to leave a comment.