If, for some reason, VS Code does not want to select a Python interpreter, you can force it to use Python manually.

  1. Close your terminal windows in VS Code by clicking the trash can icon beside them.
  2. Once your terminals are closed, hit the key combination: ctrl + shift + P
    On MacOS it is ⌘ + shift + P
  3. Begin typing “Python: Select Interpreter” in the dropdown that appears from the top
  4. Follow the prompt that appears to choose your Python interpreter – we suggest using the one in the environment for your class.
  5. Once done, open the terminal window again and attempt to execute your commands.

If you are prompted to install the VS Code Python Extensions, please allow it to do this, as it may improve VS Code’s functionality.