我使用的是 MacOS 10.15.7 Catalina,目前使用的是 Python 3.8.4 和 Pip 21.1.1
\n无论出于何种原因,当我尝试运行时,我不断收到错误python -m pip install xmlsec
文本形式错误:
\n\xe2\x9e\x9c python -m pip install xmlsec \nCollecting xmlsec\n Using cached xmlsec-1.3.10.tar.gz (62 kB)\n Installing build dependencies ... done\n Getting requirements to build wheel ... done\n Installing backend dependencies ... done\n Preparing wheel metadata ... done\nRequirement already satisfied: lxml>=3.8 in /Users/rsheikh/.pyenv/versions/3.8.4/lib/python3.8/site-packages (from xmlsec) (4.6.3)\nBuilding wheels for collected packages: xmlsec\n Building wheel for xmlsec (PEP 517) ... error\n ERROR: Command errored out with …Run Code Online (Sandbox Code Playgroud) 这尤其在 RHEL 上发生 已经安装了这个包 yum install libxml2-devel xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel
Could not find xmlsec1 config. Are libxmlsec1-dev and pkg-config installed
Command "/usr/local/pyenv/versions/3.6.5/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ucm4xpg5/xmlsec/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-gr0ttbdf/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ucm4xpg5/xmlsec/
Run Code Online (Sandbox Code Playgroud)
为什么我收到此错误即使我安装了所需的软件包
我正在使用 djangosaml2 和 pysaml2 使用 SAML 进行 sso 身份验证。
Pysaml2 需要 xmlsec1 来进行安全断言。
我可以在 ubuntu 14.04 上安装 xmlsec1。一切正常。
对于 windows 平台,我无法安装 xmlsec1 库。
我尝试过的-
1 从https://www.zlatkovic.com/libxml.en.html下载的 Windows 二进制文件 2 当我尝试访问它时,出现 libltdl-7.dll 丢失错误