I'm having trouble with the shell in Visual Code Studio in WSL

You don't need WSL to access a bash shell in Visual Studio Code. The most normal way to do it is to install the git-bash app and Visual Studio Code in Windows and then you can access all your installed Python files in Windows from Visual Studio Code and use a bash shell in Visual Studio Code in Windows too.

Start git-bash Visual Studio Code extension adds two "bash" commands to VSCode that allow you to start git-bash, either in the folder of the current file or in the workspace's root folder. Open your preferred browser and visit Git Bash downloads page by clicking the following link: Git Download Page. Once the page loads, click the Download for Windows button.

Plugin provides two commands:

  • bash will open bash in your current file's directory.
  • bash in workspace will open bash always in the root workspace directory, despite what file is opened.

Just press F1 and then type any of above commands to start git-bash.exe.

Note that you will need to have git-bash.exe on the environment path.