FileNotFoundError: [Errno 2] No such file or directory

One of the error in Anaconda and Spyder and python is that:

FileNotFoundError: [Errno 2] No such file or directory: './data/test/body_acc_x_test.txt'

Solutions:

There are many solutions for it, but the best solution if that check the path and your filename, some times there is an unallowable character in your path or in the name of your file such as blank space or \.

Leave a Reply

Your email address will not be published. Required fields are marked *