ubuntu安装whl或其他工具时速度过慢(在已经设置好conda和系统都为国内源的前提下还特别慢,速度只有几kb,不知道为什么???)
解决方法,自己手动安装(比如我要装matplotlib):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
更新:
用pip装得慢可能是因为没有更换pip的源。。。
操作如下:
mkdir ~/.pip
vim ~/.pip/pip.conf
[global]
index-url = https://pypi.mirrors.ustc.edu.cn/simple/