虚拟机里ubuntu系统如何加快下载速度

虚拟机里Ubuntu系统下载速度太慢了,如何加速

评论 2

  • 1、在home/用户名/目录下创建.pip文件夹,在终端输入:

    mkdir .pip

    2、然后进入文件夹,在终端输入:

    cd .pip 

    3、创建pip.conf文件,,在终端输入:

    touch pip.conf

    4、打开“pip.conf”文件,输入以下内容然后保存即可

    [global] timeout = 6000 index-url = http://mirrors.aliyun.com/pypi/simple/ trusted-host = mirrors.aliyun.com

    备注:上面是更换为阿里源,其他源也是一样,比如中科大就替换相应内容如下 index-url=http://pypi.mirrors.ustc.edu.cn/simple/ trusted-host =pypi.mirrors.ustc.edu.cn