解决办法:可能是配置的Python路径混乱了。点击setting>python interpreter>show all>Show paths for the selected interpreter 点击右边的减号就可以移除不需要的路径然后保存。