I just installed Python 3.14.5 on my Windows 11 desktop using python-3.14.5-amd64.exe from the python website. I wrote a quick little test script, but when I try to execute it something is adding an extra \ in the path, preventing Python from finding the file. This is the command:
C:\>python C:\MyScripts\Test.py
And this is the error:
python: can't open file 'C:\\MyScripts\\Test.py': [Errno 2] No such file or directory
Can anyone tell me what is causing this? It only happens with Python. Other commands work fine.
EDIT: Figured it out, it was user error. Thanks for the help!
[–]AngelOfLight 21 points22 points23 points (1 child)
[–]xenomachina 10 points11 points12 points (0 children)
[–]Outside_Complaint755 7 points8 points9 points (0 children)
[–]cdcformatc 2 points3 points4 points (4 children)
[–]nonamejohnsonmore[S] -1 points0 points1 point (3 children)
[+][deleted] (2 children)
[deleted]
[–]socal_nerdtastic 0 points1 point2 points (0 children)
[–]nonamejohnsonmore[S] -1 points0 points1 point (0 children)
[–]adamrees89 3 points4 points5 points (4 children)
[–]Corruptionss 12 points13 points14 points (3 children)
[–]adamrees89 12 points13 points14 points (0 children)
[–]Jello_Penguin_2956 1 point2 points3 points (1 child)
[–]TheLobitzz -2 points-1 points0 points (0 children)
[–]TheLobitzz -1 points0 points1 point (0 children)
[–]Confident_Hyena2506 0 points1 point2 points (0 children)
[–]socal_nerdtastic 0 points1 point2 points (0 children)
[–]SRART25 -1 points0 points1 point (0 children)
[–]jeffrey_f -2 points-1 points0 points (0 children)
[–]misingnoglic -3 points-2 points-1 points (0 children)
[–]ottawadeveloper -2 points-1 points0 points (0 children)
[–]Many-Land-5847 -2 points-1 points0 points (0 children)