pytorch版本1.0以上已集成 所以,更新一下就好了 更新命令: pip install --upgrade torch 使用方法就是 import torch torch.nn.CTCLoss()