skip to Main Content

I’m trying to run hello world using python language but this error keep on prompting

enter image description here

PS C:Users`OneDriveDocumentspythonprog> python -u "c:Users`OneDriveDocumentspythonprogprog.py"
C:Program FilesPython311python.exe: can’t open file ‘c:Users\OneDriveDocumentspythonprogprog.py’: [Errno 2] No such file or directory

I’ve tried following videos on youtube but still having this error

2

Answers


  1. Try reloading VsCode and open your pythonprog folder in vs code . Then run your file.

    Login or Signup to reply.
  2. The problem is the [ ` ] in your folder path. Please modify your folder name, we suggest that the script path should be in full English and does not contain spaces and special symbols.

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search