“错误:无法为xmlsec构建轮廓,这是安装基于pyproject.toml的项目所需的。”

7

我在尝试从终端安装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

我该怎么解决这个问题?


相同,它们... - Tony Lucas
1个回答

9
在安装Rasa X之前,请尝试添加以下内容: brew install libxml2 libxmlsec1 pkg-config

2
这个操作应该在安装了 Rasa 版本的 'venv' 中进行吗?(它与 venv 外部的版本不同)。谢谢。 - uk_butterfly
这对我解决了问题! - Caleb Whittington
@uk_butterfly 我相信 brew install 会下载适用于你的 Mac 的软件包,因此可以在任何地方运行上述命令,这应该可以正常工作。 - Caleb Whittington

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接