【转】解决pip install太慢的问题

将pip的源换为国内的。

1.新建目录及文件~/.pip/pip.conf

2.内容为:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

[install]
trusted-host=mirrors.aliyun.com

posted @ 2020-04-17 17:49  Zero116  阅读(998)  评论(0编辑  收藏  举报