Python下的pip的安装源的切换

环境:centos 6.9 x64 minimal
cd ~
mkdir .pip
ls ~/.pip
vi ~/.pip/pip.conf
i
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
esc
wq

试试速度飞快了
或者
cd ~
mkdir .pip
pip install turtle –trusted-host mirrors.aliyun.com
我没成功,不知道为何