pip install xmlsec命令引发以下错误。
ERROR: Command errored out with exit status 1:
command: /home/xxx/PycharmProjects/saml_impl/saml_impl/venv/bin/python /home/sathia/PycharmProjects/saml_impl/saml_impl/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpu_b5m5vz
cwd: /tmp/pip-install-gblz98sr/xmlsec
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.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/xmlsec
copying src/xmlsec/py.typed -> build/lib.linux-x86_64-3.8/xmlsec
copying src/xmlsec/template.pyi -> build/lib.linux-x86_64-3.8/xmlsec
copying src/xmlsec/constants.pyi -> build/lib.linux-x86_64-3.8/xmlsec
copying src/xmlsec/__init__.pyi -> build/lib.linux-x86_64-3.8/xmlsec
copying src/xmlsec/tree.pyi -> build/lib.linux-x86_64-3.8/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 use PEP 517 and cannot be installed directly'我不知道如何解决这个问题。我也尝试过安装其他的xmlsec包,但什么也没成功。
发布于 2020-09-12 12:02:33
https://pypi.org/project/xmlsec/列出了这里的Xmlsec。下面的命令应该安装以便下载所需的本机库。
sudo apt-get install pkg-config libxml2-dev libxmlsec1-dev libxmlsec1-openssl发布于 2021-01-08 18:25:38
我在安装xmlsec时也遇到了类似的问题。我所做的是重新安装这里列出的所需的本机库:https://pypi.org/project/xmlsec/
它就像安装一样简单:brew install libxml2 libxmlsec1 pkg-config
发布于 2021-08-23 09:28:02
sudo apt-get install libxmlsec1-dev pkg-config这将适用于ubuntu / wsl ubuntu。
https://stackoverflow.com/questions/63859803
复制相似问题