I started watching a Python course on YouTube in which the guy giving the lesson teaches using VSCode. He started with software installation (Python & Pycharm). Then, in VSCode he downloaded the Python extension (the one made by Microsoft) and the extension called "Code Runner" to run the Python code on VSCode. When I try running my code it hits me with the following error wich you can also see in the image on the link at the end of the question. I'm not able to post a screenshot of it because I'm new on this platform. Thanks to whoever sees this.
[Running] python -u "c:\Users\Ryan\Desktop\Python\app.py" Python was not found but can be installed from the Microsoft Store: htttps://go.microsoft.com/fwlink?linkID=2082640
You don't have the command python
installed into your PATH
on Windows which is the default if you didn't get your copy of Python from the Windows Store. If you selected your Python interpreter in VS Code (look in the status bar), then I would disable Code Runner. That way the Python extension is what provides the ability to run Python (the Play button will be green instead of white).
Thanks, it worked and ran the code. When I run it, this is the output: PS C:\Users\Luis\Desktop\Python> & C:/Users/Luis/AppData/Local/Programs/Python/Python38-32/python.exe c:/Users/Luis/Desktop/Python/app.py Hello, Baby PS C:\Users\Luis\Desktop\Python> And I'd like it to look a little cleaner, like Pycharm's output that looks like this: C:\Users\Luis\PycharmProjects\python0\venv\Scripts\python.exe C:/Users/Luis/Desktop/Python/app.py Hello, Baby Process finished with exit code 0 It might look alike, but I couldn't post the screenshots in this comment.
@devloop please don't forget to thank the gentleman that helped you by up-voting his response.
@ShadyMBA I already did but I don't have enough reputation for it to be publicly displayed.
Oh ok...got it...thanks :-)