将pip的源换为国内的。
1.新建目录及文件~/.pip/pip.conf
2.内容为:
[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]trusted-host=mirrors.aliyun.com