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

已安装setuptools,使用--use-pep517安装pygwalker仍失败求助

已安装setuptools但pygwalker安装失败

执行安装命令:

pip install pygwalker --use-pep517  --proxy=<proxy>:<port>

输出内容:

Collecting pygwalker
  Using cached pygwalker-0.3.15-py3-none-any.whl.metadata (19 kB)
Collecting appdirs (from pygwalker)
  Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Requirement already satisfied: arrow in c:\users\user\appdata\local\programs\python\python312\lib\site-packages (from pygwalker) (1.3.0)
Collecting astor (from pygwalker)
  Using cached astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting duckdb<=0.8.1 (from pygwalker)
  Using cached duckdb-0.8.1.tar.gz (10.4 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000020F413C32F0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
      WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000020F413F5B20>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
      WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000020F4157E840>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
      WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000020F4157E7B0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
      WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000020F4157E9F0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
      ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
      ERROR: No matching distribution found for setuptools>=40.8.0
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

执行pip show setuptools结果:

Name: setuptools
Version: 68.2.2
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
License:
Location: C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages
Requires:
Required-by:

必须指定--use-pep517参数,否则会出现要求使用该参数的错误,请求协助解决安装失败问题。


解决方法

1. 复用本地已安装的setuptools

添加--no-build-isolation参数,让pip直接使用当前环境已有的依赖,无需重新下载build依赖:

pip install pygwalker --use-pep517 --no-build-isolation --proxy=<proxy>:<port>

2. 验证代理配置有效性

从错误日志看,连接pypi.org超时,需确认:

  • 代理地址、端口是否正确,能正常访问外网
  • 若代理需用户名密码,格式应为--proxy=http://<username>:<password>@<proxy>:<port>
  • 可先测试代理连通性:
curl -x <proxy>:<port> https://pypi.org/simple/setuptools/

3. 手动预安装duckdb的wheel包

失败根源是安装duckdb时编译依赖下载超时,可先手动下载对应Python版本和系统的duckdb wheel包,本地安装后再装pygwalker:

# 示例:假设下载的wheel包为duckdb-0.8.1-cp312-cp312-win_amd64.whl
pip install duckdb-0.8.1-cp312-cp312-win_amd64.whl
pip install pygwalker --use-pep517 --proxy=<proxy>:<port>

4. 延长pip超时时间

若因网络不稳定导致超时,可增加超时参数:

pip install pygwalker --use-pep517 --proxy=<proxy>:<port> --default-timeout=60

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.05 14:47:03