Impossible d'installer xmlsec à l'aide de la commande PIP
pip install xmlsec commandes lève l'erreur ci-dessous.
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'
Je ne sais pas comment résoudre ce problème. J'ai essayé d'installer un autre package xmlsec aussi, rien n'a fonctionné.
Réponses
J'ai trouvé une solution,
Dans le journal lui-même mentionné un problème avec pkg-config. J'ai installé la commande ci-dessous
sudo apt-get install -y pkg-config
Le problème est maintenant résolu.
J'ai eu un problème similaire mais au lieu de l' erreur "pkg-config" , j'ai eu une erreur avec "xmlsec1" alors j'ai utilisé la commande
sudo apt-get install libxmlsec1-dev pkg-config
selon Impossible de trouver la configuration xmlsec1. Les libxmlsec1-dev et pkg-config sont-ils installés?
Cela indique que les roues que vous essayez d'installer ne sont pas prises en charge par PEP 517. Essayez de mettre à niveau les packages suivants, puis réessayez d'installer
pip install --upgrade pip setuptools wheel
J'ai eu un problème similaire avec l'installation de xmlsec. Ce qui a fait pour moi a été de réinstaller les bibliothèques natives requises répertoriées ici:https://pypi.org/project/xmlsec/
C'était aussi simple que d'installer: brew install libxml2 libxmlsec1 pkg-config