标签: xmlsec1

当 pip 安装 xmlsec 时,收到“错误:xmlsec1 未安装或不在路径中。”

我使用的是 MacOS 10.15.7 Catalina,目前使用的是 Python 3.8.4 和 Pip 21.1.1

\n

无论出于何种原因,当我尝试运行时,我不断收到错误python -m pip install xmlsec

\n

文本形式错误:

\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)

python macos homebrew pip xmlsec1

14
推荐指数
2
解决办法
9879
查看次数

找不到 xmlsec1 配置。是否安装了 libxmlsec1-dev 和 pkg-config?

这尤其在 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)

为什么我收到此错误即使我安装了所需的软件包

python-3.x xmlsec1 rhel7

10
推荐指数
1
解决办法
1万
查看次数

如何在 Windows 上安装 xmlsec1

我正在使用 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 丢失错误

xmlsec python-2.7 saml-2.0 libltdl xmlsec1

5
推荐指数
1
解决办法
1397
查看次数

标签 统计

xmlsec1 ×3

homebrew ×1

libltdl ×1

macos ×1

pip ×1

python ×1

python-2.7 ×1

python-3.x ×1

rhel7 ×1

saml-2.0 ×1

xmlsec ×1