The story that Python stopped working with VS Code (Windows 10)
What happened
- I was troubled that the type did not come out when I moused over the variable
- Can't run in the first place
- Notify in English that "Python is not included, so install it. From the extension Python (*)."
- I think it said python is not installed
- The red frame in the image below says in English, "The Python interpreter is not selected, so select it."
- I think it said select python interpreter
-
- A Python extension from Microsoft. The one that you always put in when writing Python with VS Code
Measures that were useless
- Confirm that it starts by typing "python" from the command prompt. I was able to confirm that the installation was of course in the path.
- Click where it says "Choose an interpreter"
- If there was something with a cross, it was a solution, but nothing came out.
- Even if I check the location of python .exe and write the path, it does not work
- Search for "python.pythonpath" from the settings (ctrl +,) and enter the path
- It seems to be a measure to try when the item above is not possible, but it is meaningless
Final solution
- Delete the Python extension folder and install the extension again
- There is an extension folder in "C: \ Users \ username \ .vscode \ extensions", and the folder "ms-python ..." in it
Feelings
- Melted for half a day. I'm tired of reading English articles, but it's better to read all three. I couldn't put together a complaint within 140 characters, rather than just wanting someone to help me.