[Python] IOError: [Errno 2] No such file or directory: 'sample.csv'

Discussão em 'Python' iniciado por Stack, Julho 17, 2025.

  1. Stack

    Stack Membro Participativo

    I am getting an IOError:

    [Errno 2] No such file or directory: 'sample.csv'


    The CSV file exists in the same location as the script. I am running it from the same path as well. This is my code:

    import csvkit
    file_name='sample.csv'
    with open(file_name,'rb') as f:
    reader = csvkit.reader(f)
    print reader

    Continue reading...

Compartilhe esta Página