dataset_path = ‘./data/’
file_name=Rohan
np.save(dataset_path+file_name+’.npy’,face_data)
print("Data Successfully save at "+dataset_path+file_name+’.npy’)
THIS IS THE PEICE OF CODE TO SAVE THE NUMPY IN FILE SYSTEM BUT ON EXECUTING , IT GIVING ME THE BELOW ERROR
File “face_data_collect.py”, line 68, in
np.save(dataset_path+file_name+’.npy’,face_data)
File “<array_function internals>”, line 5, in save
File “C:\Users\91763\anaconda3\lib\site-packages\numpy\lib\npyio.py”, line 524, in save
file_ctx = open(file, “wb”)
FileNotFoundError: [Errno 2] No such file or directory: ‘./data/Rohan.npy’