I’ve tried doing so much stuff, but nothing works.
My code and directory:
Terminal after I try running it:
I tried disabling some extensions. Nothing
I tried running the command in my terminal. Nothing.
I tried looking at other posts about it. Nothing.
>Solution :
You are not running your terminal in the same path where the file is located. The easiest way to go is to open the folder that contains your file using vscode. Right click on the folder and chose "Open with Code". Then your terminal will run there by default.
Otherwise change the directory to the correct location using something likecd "OneDrive/documents/python stuff".
Or specify the path of the file you are trying to run. Something like this:> python "/OneDrive/documents/python stuff/file_name.py"


