一、安装依赖 pip install transformers 二、测试代码 from transformers import pipeline # 加载一个文本生成模型 text_generator = pipe