豆瓣源
臨時(shí)修改
pip install moviepy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
永久修改
linux:
修改 ~/.pip/pip.conf (沒有就創(chuàng)建一個(gè))锉试, 內(nèi)容如下:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
python各種版本
https://mirrors.huaweicloud.com/python/](https://mirrors.huaweicloud.com/python/
pycharm回退設(shè)置<https://blog.csdn.net/viviliao_/article/details/79647358
更新阿里源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #備份
sudo vim /etc/apt/sources.list #修改
sudo apt-get update #更新列表
阿里的源偷仿,如下厘灼,
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
Centos6更新163源
首先進(jìn)入源的配置目錄:執(zhí)行 cd /etc/yum.repos.d/
將原來配置文件保存舔涎,防止誤操作。執(zhí)行 mv CentOS-Base.repo CentOS-Base.repo.bk
聯(lián)網(wǎng)獲取163的源文件:執(zhí)行 wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
將下載好的文件改名:執(zhí)行 mv CentOS6-Base-163.repo CentOS-Base.repo
清空剔猿、生成緩存:執(zhí)行 yum clean all
yum makecache
配置成功硕糊。
如果執(zhí)行yum makecache時(shí)提示失敗,原因?yàn)樗俣忍锾疲梢孕薷腃entOS-Base.repo文件屋摔,將#mirrorlist行的注釋取消。重新生成緩存即可替梨。```