[Python] Cannot open .py files: "[Errno 2] No such file or directory"

Discussão em 'Python' iniciado por Stack, Setembro 26, 2024.

  1. Stack

    Stack Membro Participativo

    I cannot open any .py file: when I run in the command prompt either "python test.py" or "python3 test.py" or "py test.py", it just says can't open file 'C:\Users\Ciela\Desktop\test.py': [Errno 2] No such file or directory.

    • Python is installed, latest version
    • All other versions are uninstalled
    • Python was automatically added to PATH during installation, I can see it in both User and System paths and the version is correct
    • the files can be opened in Python just by double-clicking them, although they shut off immediately (I know they work because the "turtle module" screen persists on the screen)
    • The OS is Windows 10 and I am a total noob trying to learn

    What could it be??

    Continue reading...

Compartilhe esta Página