You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows10下pip安装/搜索报错ProtocolError: PermissionError(13)求助

Windows 10下pip安装/搜索包持续报错
  • 系统环境:Windows 10
  • Python版本:3.12.4(从python.org下载),对应pip版本24.0
  • 问题现象:执行pip install 'package name'或pip search 'package name'命令始终报错;此前pip功能正常,使用Chocolatey后出现该问题
  • 网络验证:同一网络下的笔记本可正常执行pip install命令

执行pip install pyautogui时的错误输出:

$ pip install pyautogui
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))': /simple/pyautogui/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))': /simple/pyautogui/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))': /simple/pyautogui/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))': /simple/pyautogui/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))': /simple/pyautogui/
ERROR: Could not find a version that satisfies the requirement pyautogui (from versions: none)
ERROR: No matching distribution found for pyautogui

执行网上找到的类似curl pypi(...).org | (...)命令时,出现与firefox.browser文件相关的错误。

已尝试以下方法,但均未解决问题:

  • 关闭防火墙
  • 以管理员身份运行命令
  • 使用--user参数
  • 创建并使用虚拟环境(venv)
  • 卸载并重新安装Python/pip
  • 将Python添加到系统环境变量Path中
  • 检查并调整256字符路径长度限制设置
  • 执行pip install --upgrade pip,仍报相同错误
  • 单独执行curl https://pypi.org/simple/pyautogui/命令可正常返回内容

内容的提问来源于stack exchange,提问作者Joseph

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.21 09:49:53