0
import logging

from simpletransformers.question_answering import QuestionAnsweringModel, QuestionAnsweringArgs

我运行上面的代码并得到这个错误

> ModuleNotFoundError                        Traceback (most recent call
> last) /tmp/ipykernel_3637/2280022744.py in <module>
>       1 import logging
> ----> 2 from simpletransformers.question_answering import QuestionAnsweringModel, QuestionAnsweringArgs
> 
> ModuleNotFoundError: No module named 'simpletransformers'

即使我已经安装了 simpletransformers

!pip install simpletransformers

我正在使用 jupyter notebook 并且我已将内核设置为 pytorch

我如何删除此错误

4

0 回答 0