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

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

相关推荐
雨疏风骤12402 分钟前
ROM与RAM,储存地址、链接地址以及运行地址
linux·stm32·嵌入式·linux嵌入式
文言一心12 分钟前
基于 Docker + Docker Compose 实现一键部署(单节点部署场景下轻量、易维护、可一键启停)
运维·docker·容器
fy zs13 分钟前
网络基础概念
linux·网络·c++
学习3人组19 分钟前
CentOS 系统下 ModelScope 模型下载的默认目录
linux·python·centos
守护砂之国泰裤辣23 分钟前
Windows+docker下简单kafka测试联调
java·运维·spring boot·docker·容器
ZeroNews内网穿透34 分钟前
本地部署 Payara Server 公网访问
运维·服务器·网络协议·安全
阿巴~阿巴~40 分钟前
从帧到包:深入解析链路层与局域网通信的核心机制
服务器·网络·网络协议·tcp/ip·智能路由器·mac·数据链路层
Java陈序员1 小时前
运维必备!一款全平台可用的服务器管理利器!
linux·react.js·docker
oMcLin1 小时前
如何在Oracle Linux 8.5上配置并优化Oracle RAC集群,确保企业级数据库的高可用性与负载均衡?
linux·数据库·oracle
威桑1 小时前
交叉编译过程中的踩坑与收获
linux·c++·arm·交叉编译