반응형
Notice
Recent Posts
Recent Comments
- Today
- Total
작심삼일
[transformers 에러] RuntimeError: Failed to import transformers.pipelines because of the following error 본문
정리/잡 에러들
[transformers 에러] RuntimeError: Failed to import transformers.pipelines because of the following error
yun_s 2024. 1. 28. 18:34728x90
반응형
에러
RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback):
Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
해결 방법
pip install -U protobuf<=3.20.1
728x90
반응형
'정리 > 잡 에러들' 카테고리의 다른 글
Comments