python3: pip3 网络源配置
一、pip3 网络源配置
1、没有的路径、文件,要自己建立。
[wit@on .pip]$ cd ~/.pip
[wit@on .pip]$
[wit@on .pip]$
[wit@on .pip]$ ls
pip.conf
[wit@on .pip]$
[wit@on .pip]$
[wit@on .pip]$ cat pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
[wit@on .pip]$
[wit@on .pip]$
二、具体配置过程
1、建立文件夹:pip
1.1 sudo mkdir -p ~/.pip
2、建立文件:pip.conf
[wit@on .pip]$ touch pip.conf
[wit@on .pip]$
[wit@on .pip]$
[wit@on .pip]$ cat pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
[wit@on .pip]$
[wit@on .pip]$
三、参考资料:
1、pip 使用国内镜像源 https://www.runoob.com/w3cnote/pip-cn-mirror.html
2、python pip的安装和使用: https://www.runoob.com/w3cnote/python-pip-install-usage.html