CentOS 8 更换 pip 源

使用国内 pip 源能够在使用包管理工具 pip 下载第三方包时大大提高其速度,CentOS 8 更换 pip 源具体操作步骤如下:

修改 /etc/pip.conf 文件:

1.执行命令:vi ~/.pip/pip.conf 编辑 pip.conf 配置文件 如果没有 用find命令找下

find / -name 'pip.conf'
[global]
index-url = https://mirrors.aliyun.com/pypi/simple

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

2.按下 i 键插入,输入如下内容,按下 esc,:wq 保存退出
 

更简单的办法

 

 


                        
原文链接:https://blog.csdn.net/qq_44214671/article/details/117607597

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章