How Linux replaces the source of the PIP and the source of the Apt-get __linux

Source: Internet
Author: User

(1) Use pip install to install Python related library, foreign source slower, modified to domestic source (watercress source)

Edit the configuration file, if not, create a new copy:

VI ~/.pip/pip.conf  

Add content as follows:

[Global]  
Index-url = http://pypi.douban.com/simple  
trusted-host = pypi.douban.com  

(2) Modify Apt-get Source (reference: Apt-get switch domestic source)

Enter the following command:

sudo cp/etc/apt/sources.list/etc/apt/sources.list.backup
sudo vi/etc/apt/sources.list
Then change the source address in the file to the address of the domestic source. (Source list-Ubuntu Chinese)
Trusty (14.04) version address list:
Deb Http://mirrors.aliyun.com/ubuntu/trusty main restricted universe Multiverse
Deb http://mirrors.aliyun.com/ Ubuntu/trusty-security main restricted universe Multiverse
Deb Http://mirrors.aliyun.com/ubuntu/trusty-updates Main restricted universe Multiverse
Deb http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe Multiverse
Deb Http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse
DEB-SRC http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverse deb-src
Mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com /ubuntu/trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty-backports Main Restricted Universe Multiverse
You can then enter the following command to test the update download speed
sudo apt-get update

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.