关于pip:centos7安装pip并配置国内阿里镜像源

5次阅读

共计 297 个字符,预计需要花费 1 分钟才能阅读完成。


参考
阿里巴巴开源镜像站

centos7 装置 pip 并配置国内阿里镜像源

首先装置 pip 前须要装置 epel-release

yum -y install epel-release


装置 pip

yum -y install python-pip


查看 pip 版本

pip --version


配置阿里镜像源(批改 pip.conf)

cd ~
mkdir .pip
cd .pip
touch pip.conf
vi pip.conf


批改为以下并保留

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

 

实现

正文完
 0