为什么我在安装软件包时收到与构建轮子相关的错误消息?

问题描述 投票:0回答:2

我正在尝试安装一个软件包(在我的例子中

guidedlda
)但安装不起作用。我输入了
pip install guidedlda
但收到以下错误消息

pip install guidedlda

Collecting guidedlda
  Using cached guidedlda-2.0.0.dev22.tar.gz (2.1 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from guidedlda) (1.23.5)
Building wheels for collected packages: guidedlda
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel 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.
  Building wheel for guidedlda (setup.py) ... error
  ERROR: Failed building wheel for guidedlda
  Running setup.py clean for guidedlda
Failed to build guidedlda
ERROR: Could not build wheels for guidedlda, which is required to install pyproject.toml-based projects

我尝试了其他方法来安装该软件包,但总是收到相同的错误消息。我还可以毫无问题地安装其他软件包。

我使用 Google Colab 和 Python 3.10.12

python lda python-wheel
2个回答
1
投票

查看Pypi

guidedlda 2.0.0.dev22
的最新版本于2017年10月27日发布,它仅支持Python 3.4 - 3.6,但您使用的是Python 3.10.12。

最好的选择是使用

guidedlda
支持的较低版本的 Python,我还鼓励您访问上面的链接并浏览它。


0
投票

这通常意味着您正在为您尝试安装的任何软件包使用不受支持的 python 版本。检查该包支持什么版本并尝试使用该版本的 Python。

© www.soinside.com 2019 - 2024. All rights reserved.