一、原因
pycharm自带源下载速度太慢,建议换成国内源,安装各种依赖包的速度会大大提升
二、具体操作
以win10系统为例:
(一)找到这个路径下pip文件夹,如果没有进行创建
C:\Users\Administrator\AppData\Roaming\pip
(二)创建文本文档,改名pip.ini
(三)打开文件,输入以下代码保存,完毕
[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn