modelscope ProxyError: HTTPSConnectionPool(host=‘www.modelscope.cn‘, port=443)

目录

[Windows CMD:](#Windows CMD:)

powershell

[Linux / macOS / Git Bash:](#Linux / macOS / Git Bash:)

[win11 设置全局系统变量代理](#win11 设置全局系统变量代理)


modelscope ProxyError: HTTPSConnectionPool(host='www.modelscope.cn', port=443)

报错:

requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.modelscope.cn', port=443): Max retries exceeded with url: /api/v1/models/Qwen/Qwen3-8B (Caused by ProxyError('Unable to connect to proxy', FileNotFoundError(2, 'No such file or directory')))

解决方法:

Windows CMD:

set HTTP_PROXY=http://127.0.0.1:7890

set HTTPS_PROXY=http://127.0.0.1:7890

powershell

$env:HTTP_PROXY="http://127.0.0.1:7890"

$env:HTTPS_PROXY="http://127.0.0.1:7890"

Linux / macOS / Git Bash:

export HTTP_PROXY=http://127.0.0.1:7890

export HTTPS_PROXY=http://127.0.0.1:7890

win11 设置全局系统变量代理

  • 右键「此电脑」→ 属性 → 高级系统设置

  • 点击「环境变量」

  • 在「系统变量」或「用户变量」里点击"新建"

    • 变量名:HTTP_PROXY

    • 变量值:http://127.0.0.1:7890

  • 再添加一个:

    • 变量名:HTTPS_PROXY

    • 变量值:http://127.0.0.1:7890

  • 确认保存后,重新打开命令行窗口才能生效

相关推荐
劉三岁1 分钟前
阿里云ssh证书过期,如果更换并上传到服务器
服务器·阿里云·云计算
失因14 分钟前
H3CNE 综合实验二解析与实施指南
运维·开发语言·网络·智能路由器·php
eagle_Annie19 分钟前
ROS1/Linux——Launch文件使用
linux·运维·服务器
JuiceFS21 分钟前
合合信息:基于 JuiceFS 构建统一存储,支撑 PB 级 AI 训练
运维·后端
@Ryan Ding36 分钟前
HAProxy负载均衡集群概述
运维·负载均衡
小阳睡不醒41 分钟前
小白成长之路-haproxy负载均衡
运维·负载均衡
eagle_Annie1 小时前
ROS1/Linux——WARNING: xxx are installed in ‘xxxxx‘ which is not on PATH
linux·运维·服务器
努力学习的小廉1 小时前
深入了解linux系统—— 信号的捕捉
android·linux·运维
测试界清流1 小时前
Jmeter socket接口测试
运维·服务器·网络
varphp2 小时前
宝塔申请证书错误,提示 module ‘OpenSSL.crypto‘ has no attribute ‘sign‘
服务器·python·宝塔