How To Fix "cannot Open File 'test.py': [errno2] No Such File Or Directory"?
I tried to run a python script which does not exist in current folder, for example C:\>python Test.py python:can't open file 'Test.py':[Errno2] No such file or directory I hav
Solution 1:
That means you're not currently in C:/testdir
(you're in C:
). Enter cd C:\testdir
in your terminal to move to that directory (cd
= change directory).
The reason you have to specify the entire path while out of the folder is because even if you're not in the folder that you're trying to reference, you can still use its path to reference it.
Post a Comment for "How To Fix "cannot Open File 'test.py': [errno2] No Such File Or Directory"?"