관리 메뉴

솜씨좋은장씨

No matching distribution found for tokenizers==0.8.1.rc2 해결 방법 본문

머신러닝 & 딥러닝/머신러닝 | 딥러닝

No matching distribution found for tokenizers==0.8.1.rc2 해결 방법

사용자 솜씨좋은장씨 2020. 10. 8. 18:13

 

ner 관련 작업을 진행하기 위하여 여러 라이브러리를 설치하는 과정에서 

 $ pip install transformers 

위의 명령어를 활용하여 설치하려고 하였을 때

(pytorch_new_p36) ubuntu@nipa2020-0000:~$ pip install transformers
Looking in indexes: http://ftp.daumkakao.com/pypi/simple
Collecting transformers
  Downloading http://mirror.kakao.com/pypi/packages/19/22/aff234f4a841f8999e68a7a94bdd4b60b4cebcfeca5d67d61cd08c9179de/transformers-3.3.1-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 907 kB/s 
Requirement already satisfied: packaging in ./anaconda3/envs/pytorch_new_p36/lib/python3.6/site-packages (from transformers) (20.4)
Collecting sentencepiece!=0.1.92
  Downloading http://mirror.kakao.com/pypi/packages/d4/a4/d0a884c4300004a78cca907a6ff9a5e9fe4f090f5d95ab341c53d28cbc58/sentencepiece-0.1.91-cp36-cp36m-manylinux1_x86_64.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 104.6 MB/s 
ERROR: Could not find a version that satisfies the requirement tokenizers==0.8.1.rc2 (from transformers) (from versions: 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.5.1, 0.5.2, 0.6.0, 0.7.0, 0.8.0, 0.8.1)
ERROR: No matching distribution found for tokenizers==0.8.1.rc2 (from transformers)
ERROR: No matching distribution found for tokenizers==0.8.1.rc2 (from transformers)

위와 같은 오류를 만나게 되었습니다.

 

이를 해결하는 방법은 다음과 같습니다.

 $ pip install transformers -i https://pypi.python.org/simple

위와 같이 뒤에 -i https://pypi.python.org/simple를 붙여주면 정상적으로 설치가 가능합니다. 

 

해결에는 아래의 이슈를 참고하였습니다.

 

pip install error · Issue #5850 · huggingface/transformers

Hi, I tried to install transformers library via pip install transformers and I got tokenizer install error. The error logs are as follows. ERROR: Could not find a version that satisfies the require...

github.com

읽어주셔서 감사합니다.

 

0 Comments
댓글쓰기 폼