skip to Main Content

I am trying to run a .py file using VS Code. But whenever I try to run a file, I get a pop up which reads Cannot read properties of undefined (reading 'execCode').

Now I do not know what the problem is and do not have enough experience to troubleshoot the problem. A google search does not bring up anything useful.

I am running python 3.9.15 on hte newest version of VS Code on a Windows 11 machine.

2

Answers


  1. Have you installed python extension?

    You can search in the extension store.

    enter image description here

    You can also read VsCode document for more details.

    Login or Signup to reply.
  2. You just need to create a new environment on your console, either virtual or with Anaconda.

    https://code.visualstudio.com/docs/python/environments

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search