• Profile photo of Bob Truesdale

      Bob Truesdale posted an update

      3 weeks ago

      A pleasant hello to Hasan and the group 🙂 I am a complete novice to coding in general and navigating VS Code. In following the setup vids, I get this error that keeps me from moving forward with the correct setup by connecting Python to VS Code.
      I’m simply at “confirming the correct install of Python to VS code.
      Any help would be greatly appreciated. Thanks!

      P.S. You’re likely going to have to spell it out as if I were a 6th grader 🙂 Thanks!

      • from what I can see, this is basically saying that it can’t find the file on your desktop. Are you sure you create the text file and then saved it as simply.py on your desktop?

        • Yes, I did make sure. It just rendered that error when I tried validating the correct setup with VS Code. Thanks so much for response! I’m sure I’ll get it sorted.

          • Hi Bob, please make sure the python file you created is on the desktop

            • @hasan Yes, Hasan. the file is on the desktop. I uploaded a short video on the community page showing this. I finally got a day off and trying to continue with this. It’s probably a simple issue, but has me stumped 🙂
              Thanks!

          • I’m still hung up verifying the correct setup with VS Code & Python. Here is a short video of the issue…
            Thanks for the help!

            • @bobbyt72
              The file is in your OneDrive Desktop folder, not your regular Desktop folder.
              Look at the file path in VS Code:
              C: > Users > true2 > OneDrive > Desktop > simple.py
              But in the terminal you ran:
              cd desktop
              python simple.py
              This takes you to C:\Users\true2\Desktop, not C:\Users\true2\OneDrive\Desktop.
              Fix: Run this instead:
              cd “C:\Users\true2\OneDrive\Desktop”
              python simple.py
              Or simply right-click inside the VS Code editor and select “Run Python File in Terminal” — it will use the correct path automatically.

            • Thank you Hasan! Ya know, I was wondering about the path, but wasn’t sure if I’d mess anything up. GREAT!

              1