Home > Software design >  VS Code can't find Python and interpreter
VS Code can't find Python and interpreter

Time:03-19

I searched everywhere, but did not find an answer. Since I think the answers are outdated because they use python.pythonPath and this does not exist anymore. My problem is the following: enter image description here

But I installed [email protected] already via homebrew (I have a mac M1 with macOS Monterey). If I use ,,which python3'', I will get: enter image description here

And here you can see the output of ,,echo $PATH'': enter image description here

What should I do, so that the error message does not appear again??

CodePudding user response:

You have to click on 'No Interpreter Selected' and then you can add a path to pythonenter image description here

If nothing else will work enter image description here

Go on terminal and write your python-path\python.exe python-file.y. If this works you can create a shell script inside of your folder and then put inside the python call. Then you can start your python file with the shell script.

CodePudding user response:

You Can Simply Go to The Extensions Library and Download the Interepter for VS Code. Make Sure Python is Installed in Your PC.

If you still Have Problems, Try Reinstalling Python and VS Code

Thanks

  • Related