1.打开设置

点击Project interpreter
1674710757129.png
1674710820766.png
点击加号

2.点击Manage Repositores

1674711408651.png

3.再次点击加号导入镜像源

1674711408659.png
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

4.换完之后安装第三方库直接从:设置–Project interpreter–点击加号

从方框里面搜索想安装的第三方库

1674711508719.png

选中点击install package即可安装成功。

1674711583988.png

更多推荐