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

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

相关推荐
Hellc007几秒前
Docker部署BaGet私有NuGet服务器:从入门到备份恢复完整指南 二
服务器·docker·eureka
XH-hui38 分钟前
【打靶日记】群内靶机vm1
linux·网络安全
Eric.Lee20211 小时前
ubuntu 安装 Miniconda
linux·运维·python·ubuntu·miniconda
会飞的土拨鼠呀2 小时前
通过Linux进程id找到程序路径
linux·服务器·网络
杭州泽沃电子科技有限公司2 小时前
在线监测:为医药精细化工奠定安全、合规与质量基石
运维·人工智能·物联网·安全·智能监测
行初心2 小时前
uos基础 cupsd.conf 查看打印服务的配置文件
运维
1***y1782 小时前
Git在发布流程中的自动化标签
运维·git·自动化
8***84823 小时前
如何在Linux中找到MySQL的安装目录
linux·运维·mysql
9***J6283 小时前
Linux下PostgreSQL-12.0安装部署详细步骤
linux·运维·postgresql
W***83203 小时前
如何在 Ubuntu 22.04 上安装 MySQL
linux·mysql·ubuntu