I need a python interpreter to run some code on VS code, but I get this screen when trying to do that. Any tips to getting around this? Please let me know.
I have tried using terminal to install my needs such as "pygame" but clearly that does not work unless I have python. Should I install python on my laptop then retry or is there a way to just have my interpreter in VS Code be python for virtual environments?
2
Answers
Vscode relies on Python existing in your system, so you must first install Python.
You can read document which has shown the Prerequisites:
This problem doesn’t really have anything to do with VS Code. VS Code doesn’t manage Python Installations.
You’re looking at the Visual Studio Installer (note that Visual Studio and VS Code are not the same thing). Looks like it’s got an old idea of the latest Python. If you insist on using the Visual Studio Installer to install Python, try first updating your Visual Studio Installer.
I’d suggest installing Python from the website, but if you’re on Windows, you can also install it from the Windows Store, or from a package manager like Chocolatey.