[Python] open() gives FileNotFoundError / IOError: '[Errno 2] No such file or directory'

Discussão em 'Python' iniciado por Stack, Agosto 5, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to open the file recentlyUpdated.yaml from my Python script. But when I try using:

    open('recentlyUpdated.yaml')


    I get an error that says:


    IOError: [Errno 2] No such file or directory: 'recentlyUpdated.yaml'
    ​

    Why? How can I fix the problem?

    Continue reading...

Compartilhe esta Página