【问题标题】:ERROR Could not build wheels for xmlsec, which is required to install pyproject.toml-based projects错误无法为 xmlsec 构建轮子,这是安装基于 pyproject.toml 的项目所必需的
【发布时间】:2022-01-09 23:42:10
【问题描述】:

尝试以本地模式从终端安装 Rasa X 时出现错误。使用 Python 3.7.4 和 pip 版本 21.3.1。使用 Mac。

  Building wheels for collected packages: xmlsec
  Building wheel for xmlsec (pyproject.toml) ... error
  ERROR: Command errored out with exit status 1:
  Complete output (14 lines):
  running bdist_wheel
  running build
  running build_py
  package init file 'src/xmlsec/__init__.py' not found (or not a regular file)
  creating build
  creating build/lib.macosx-10.9-x86_64-3.7
  creating build/lib.macosx-10.9-x86_64-3.7/xmlsec
  copying src/xmlsec/py.typed -> build/lib.macosx-10.9-x86_64-3.7/xmlsec
  copying src/xmlsec/tree.pyi -> build/lib.macosx-10.9-x86_64-3.7/xmlsec
  copying src/xmlsec/__init__.pyi -> build/lib.macosx-10.9-x86_64-3.7/xmlsec
  copying src/xmlsec/constants.pyi -> build/lib.macosx-10.9-x86_64-3.7/xmlsec
  copying src/xmlsec/template.pyi -> build/lib.macosx-10.9-x86_64-3.7/xmlsec
  running build_ext
  error: Unable to invoke pkg-config.
  ----------------------------------------
  ERROR: Failed building wheel for xmlsec
Failed to build xmlsec
ERROR: Could not build wheels for xmlsec, which is required to install pyproject.toml-based projects

我该如何解决这个问题?

【问题讨论】:

  • 一样,他们....

标签: python-3.x xmlsec


【解决方案1】:

在安装 Rasa X 之前尝试添加: brew install libxml2 libxmlsec1 pkg-config

【讨论】:

  • 是否应该在安装 Rasa 版本的 'venv' 中完成? (它与 venv 之外的版本不同)。谢谢
  • 这解决了我的问题!
  • @uk_butterfly 我相信brew install 会为你的 Mac 下载软件包,所以上面的命令可以在任何地方运行,这应该可以工作。
猜你喜欢
  • 2022-01-22
  • 1970-01-01
  • 2022-06-29
  • 2022-11-20
  • 2022-11-24
  • 2022-08-06
  • 2022-11-08
  • 2022-08-17
  • 2022-12-13
相关资源
最近更新 更多