方法一:
通过命令行安装:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn packname
对于没有权限的朋友可以在后面加上 --user
如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn tensorflow --user
方法二:
1、在pycharm的file里打开Settings
2、Project:untitled2>project interpreter。点击'+'
3、搜索需要添加的Modle即可