FileNotFoundError: [Errno 2] No such file or directory
Question: I am trying to open a CSV file but for some reason python cannot locate it.

Here is my code (it's just a simple code but I cannot solve the problem):

    
    
    import csv
    
    with open('address.csv','r') as f:
        reader = csv.reader(f)
        for row in reader:
            print row
    


Answer: You are using a relative path, which means that the program looks for the file
in the working directory. The error is telling you that there is no file of
that name in the working directory.

Try using the exact, or absolute, path.

