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

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

相关推荐
理智的煎蛋3 小时前
MySQL高可用架构:MHA
linux·数据库·mysql·架构·可用性测试
zz-zjx3 小时前
进程与线程详解, IPC通信与RPC通信对比,Linux前台与后台作业
linux·网络协议·rpc
大筒木老辈子5 小时前
Linux笔记---计算机网络概述
linux·笔记·计算机网络
小白考证进阶中5 小时前
终于赶在考试券过期前把Oracle OCP证书考下来了!
运维·数据库·oracle·dba·开闭原则·数据库管理员
keep__go6 小时前
postgresql9.2.4 跨版本升级14.6
linux·运维·数据库·postgresql
Doris_LMS6 小时前
Git的强软硬回退(三)
运维·服务器·数据库·git·idea
深思慎考6 小时前
LinuxC++项目开发日志——高并发内存池(1-定长内存池)
linux·c++
(Charon)6 小时前
基于 epoll 的高并发服务器原理与实现(对比 select 和 poll)
运维·服务器
Jtti6 小时前
在 Debian 系统上清理缓存的方式和具体操作方法
运维·缓存·debian
伐尘7 小时前
【mac】如何在 macOS 终端中高效查找文件:五种实用方法
运维·macos