如何使用科大 mirrors 加速 pip?

编辑 ~/.pip/pip.conf 文件(如果没有则创建之),将 index-url 开头的一行修改为下面一行:

index-url = https://pypi.mirrors.ustc.edu.cn/simple

 如果运行 pip 时, 提示如下错误

configparser.MissingSectionHeaderError: File contains no section headers.

 请在 ~/.pip/pip.conf 最上方加上 [global] 这一 section header

posted @ 2016-07-25 15:26  巫谢  阅读(499)  评论(0编辑  收藏  举报