I added this descriptor to wsl.distributions.xml in the [pycharm]/config/options directory: <descriptor> <id>Ubuntu-20.04</id> <microsoft-id>Ubuntu-20.04</microsoft-id> <executable-path>C:\Windows\System32\lxss\wslhost.exe</executable-path> <presentable-name>Ubuntu-20.04</presentable-name> </descriptor> When I go to set up the interpreter in PyCharm, choose WSL and, it finds the correct version and /usr/bin/python points to the correct WSL package (the same package in the Windows Registry under lsxx). However, when I click OK I get this error: Process finished with exit code 1 Why? Or how can I debug this with logs? Continue reading...