1, the configuration WSL
https://www.jetbrains.com/help/pycharm/using-wsl-as-a-remote-interpreter.html
2、
Use the built-in terminal Pycharm Python code run open WSL
In fact, Pycharm already comes with a terminal, you can start WSL directly in the terminal, and then run your code.
Where the project directory, you can drive letter of the Windows directory, converted into "/ mnt / letter", remove the colon and use slashes / instead of backslashes, for example, C: \ Windows -> / mnt / c / Windows (remember Linux is case-sensitive). before running the source code, install Python or Anaconda.
3, can also be configured to connect remote SSH python development environment