在Windows上安装LimeReport的Python绑定

0 投票
1 回答
35 浏览
提问于 2025-04-14 17:06

在Windows上安装LimeReport-qt-6-4 1.7.6,这是一个用于LimeReport的Python绑定。

我在Ubuntu 23.10上尝试使用pip install LimeReport-qt-6-4安装,结果成功了,使用的是Python 3.11和PySide6 6.6.2。

现在我想在Windows上安装,但在安装时出现了Installing build dependencies ... error的错误。

我尝试了不同版本的Python(3.9、3.11、3.12)和PySide6(6.4.2和6.6.2),但还是不行。

有没有什么建议可以在Windows上安装它呢?

这是我收到的完整错误信息:

Collecting LimeReport-qt-6-4
  Using cached LimeReport-qt-6-4-1.7.6.tar.gz (15.5 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      Collecting cmake>=3.18
        Using cached cmake-3.28.3-py2.py3-none-win_amd64.whl.metadata (6.5 kB)
      Collecting setuptools>=42
        Using cached setuptools-69.1.1-py3-none-any.whl.metadata (6.2 kB)
      Collecting wheel
        Using cached wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB)
      ERROR: Ignored the following versions that require a different python version: 6.3.0 Requires-Python <3.11,>=3.6; 6.3.1 Requires-Python <3.11,>=3.6; 6.3.2 Requires-Python <3.11,>=3.6; 6.4.0 Requires-Python <3.11,>=3.6; 6.4.0.1 Requires-Python <3.12,>=3.7; 6.4.1 Requires-Python <3.12,>=3.7; 6.4.2 Requires-Python <3.12,>=3.7; 6.4.3 Requires-Python <3.12,>=3.7; 6.5.0 Requires-Python <3.12,>=3.7; 6.5.1 Requires-Python <3.12,>=3.7; 6.5.1.1 Requires-Python <3.12,>=3.7; 6.5.2 Requires-Python <3.12,>=3.7; 6.5.3 Requires-Python <3.12,>=3.7
      ERROR: Could not find a version that satisfies the requirement shiboken6==6.4.2 (from versions: 6.6.0, 6.6.1, 6.6.2)
      ERROR: No matching distribution found for shiboken6==6.4.2
      [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.

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

1 个回答

0

我试着自己安装了一下:

在这里输入图片描述

它也卡住了,就像你的情况一样

可以试着联系作者 Maxim Slipenko (python-limereport@maks1ms.anonaddy.com)

或者

打破 Windows 和 Linux 之间的界限,使用:

WSL(Windows 子系统 Linux)

或者

使用 Docker 容器,这样就不用担心操作系统的问题了。

祝你好运!

撰写回答