Unable to compare versions for numpy>=1.17: need=1.17 found=None.
System Info
Ubuntu 18.04.6 transformers version : 4.18.0 pytorch version : 2.0.0 numpy version : 1.24.3 conda env
Who can help?
@sgugger
Information
- [X] The official example scripts
- [ ] My own modified scripts
Tasks
- [X] An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - [ ] My own task or dataset (give details below)
Reproduction
from transformers import pipeline text_classifier = pipeline('text-classification', model='distilbert-base-uncased-finetuned-sst-2-english') text = "This movie is good!" result = text_classifier(text) print(result)
when I run a code using transformers, there will be an error:
Traceback (most recent call last):
File "/home/hyx/hhq/hugging_face/test.py", line 1, in
Expected behavior
I have tried to reinstall numpy ,transformers, but it's not work