问题描述

pip install pytorch-pretrained-bert==0.6.1

安装pytorch-pretrained-bert包的过程中出现错误:
在这里插入图片描述


原因分析:

版本不匹配,找不到适应版本;或是镜像错误


解决方案:

换其他镜像源

pip install pytorch_pretrained_bert==0.6.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

在这里插入图片描述
参考: 问题总结:ModuleNotFoundError
ERROR: Could not find a version that satisfies the requirement

更多推荐