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

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

相关推荐
chlk12311 小时前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑11 小时前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件12 小时前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
碳基沙盒12 小时前
OpenClaw 多 Agent 配置实战指南
运维
深紫色的三北六号21 小时前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash1 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI1 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行2 天前
Linux和window共享文件夹
linux
Sinclair2 天前
简单几步,安卓手机秒变服务器,安装 CMS 程序
android·服务器
木心月转码ing2 天前
WSL+Cpp开发环境配置
linux