본문 바로가기
Python/Error

libssl.so.10: cannot open shared object file: No such file or directory

by 고경수 2023. 5. 4.

huggingface의 transformers를 설치후에

from transformers import AutoTokenizer

를 사용하였더니 다음과 같은 오류가 발생하였다.

 

RuntimeError: Failed to import transformers.models.auto.tokenization_auto because of the following error (look up to see its traceback):
libssl.so.10: cannot open shared object file: No such file or directory

 

허깅페이스 공식사이트에서 conda를 사용하여 transformers를 설치할 때

다음과 같이 conda install -c huggingface transformers를 사용하라고 해서 했는데 오류가 발생하였고

 

$ pip uninstall tokenizers

$ pip uninstall transformers

 

토크나이저와 트랜스포머를 둘다 지워준 후에

 

$ pip install transformers

 

를 사용하여 재설치해주었더니 제대로 작동하였다.

'Python > Error' 카테고리의 다른 글

[Python] AttributeError: 'NoneType' object has no attribute 'copy'  (0) 2023.01.19