项目场景:
解决Key already registered with the same priority: GroupSpatialSoftmax
问题描述:
因为conda源下载不稳定,我在换版本pytorch版本时使用了pycharm直接安装了pytorch1.5.0
随后无论我跑哪个程序都是以下错误
Key already registered with the same priority: GroupSpatialSoftmax
原因分析:
原因是conda安装和pycharm安装包其在运行程序的时优先级上起了冲突
解决方案:
进入anaconda点击你使用的环境
在installed中找到pytorch 然后完全卸载
再在conda上进行安装新的pytorch
因为pytorch包比较大 conda安装很容易因为网络问题安装不了
个人推荐在镜像源下好后 再本地安装
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64/