Error and Solve

[에러 해결] NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported. / pip install datasets==2.20.0

Chr0n 2024. 7. 30. 15:35
반응형

 

 

 

 

NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported.

 

 

1. NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported

 

 

datasets.load_dataset을 할 때 local cache를 못 쓴다는 에러가 생겼다. 

 

 

 

 

 

해결: datasets package version upgrade

 

 

원래 datasets 패키지 버전은 2.11.0이었다. 

 

이 datasets 버전에서는 저런 캐시 방식을 지원하지 않았던 것이다. 

 

문제를 해결하기 위해 datasets를 최근 버전으로 다시 재설치하였다. 

 

 

 

pip install datasets==2.20.0

pip install datasets==2.20.0

 

 

그리고 나서 다시 load_dataset을 실행시키면 잘 돌아간다

 

 

 

 

 


 

Reference

 

 

 

 

 

반응형