内蒙古护角专用胶价格 pip 使用国内镜像源 | 菜鸟教程

发布日期:2026-02-22 点击次数:115
泡沫板橡塑板专用胶

默认情况下 pip 使用的是国外的镜像,在下载的时候速度非常慢,本文我们介绍使用国内清华大学的源内蒙古护角专用胶价格,地址为:

https://pypi.tuna.tsinghua.edu.cn/simple

我们可以直接在 pip 命令中使用 -i 参数来指定镜像地址,例如:

奥力斯    pvc管道管件胶批发    联系人:王经理    手机:15226765735(微信同号)    地址:河北省任丘市北辛庄乡南代河工业区内蒙古护角专用胶价格

pip3 install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple

以上命令使用清华镜像源安装 numpy 包。

设为默认

升 pip 到新的版本后进行配置:内蒙古护角专用胶价格

python -m pip install --upgrade pip
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

如果您到 pip 默认源的网络连接较差,临时使用本镜像站来升 pip:

python -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade pip
修改配置文章

如果需要全局修改内蒙古护角专用胶价格,pvc管道管件胶则需要修改配置文件。

Linux/Mac os 环境中,配置文件位置在 ~/.pip/pip.conf(如果不存在创建该目录和文件):
mkdir ~/.pip

开配置文件 ~/.pip/pip.conf,修改如下:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn

查看 镜像地址:

$ pip3 config list   
global.index-url='https://pypi.tuna.tsinghua.edu.cn/simple'
install.trusted-host='https://pypi.tuna.tsinghua.edu.cn'

可以看到已经成功修改了镜像。

Windows下,你需要在当前对用户目录下(C:\Users\xx\pip,xx 表示当前使用对用户内蒙古护角专用胶价格,比如张三)创建个 pip.ini在pip.ini文件中输入以下内容:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = pypi.tuna.tsinghua.edu.cn
其他国内镜像源 清华大学TUNA镜像源: https://pypi.tuna.tsinghua.edu.cn/simple 阿里云镜像源: http://mirrors.aliyun.com/pypi/simple/ 科学技术大学镜像源: https://mirrors.ustc.edu.cn/pypi/simple/ 华为云镜像源: https://repo.huaweicloud.com/repository/pypi/simple/ 腾讯云镜像源:https://mirrors.cloud.tencent.com/pypi/simple/ 相关词条:铁皮保温施工     隔热条设备     锚索    离心玻璃棉    万能胶生产厂家
首页
电话咨询
QQ咨询
新闻资讯