#fea_all is the numpy array f1=open('/home/mehedi/DIU/Research/Cats vs Dogs/Feature/Raw Feature/features.npy', 'wb') np.save(f1,fea_all)