首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误无法为xmlsec构建轮子,这是安装基于pyproject.toml的项目所必需的。

错误无法为xmlsec构建轮子,这是安装基于pyproject.toml的项目所必需的。
EN

Stack Overflow用户
提问于 2021-12-03 15:53:40
回答 1查看 7.9K关注 0票数 3

当试图在本地模式下安装Rasa X时,我有一个错误。使用Python3.7.4和pip版本21.3.1。利用麦克。

代码语言:javascript
运行
复制
  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

我怎么才能解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-12-04 11:03:26

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

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70217122

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档