构建 xmlsec 的轮子失败

2024-10-03 06:18:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在python virtualenv环境上安装mac。每当我安装需求包命令“pip install-r要求.txt“我收到了这些信息。在

pip install -r requirements.txt ----------------------------------------
Failed building wheel for xmlsec
Running setup.py clean for xmlsec
Failed to build xmlsec
Installing collected packages: xmlsec, python3-saml, raven, scrypt, social-auth-app-django, social-auth-steemconnect, w3lib, voluptuous, ujson, toolz, steem
Running setup.py install for xmlsec ... error
Complete output from command 
/Users/leebom/Documents/workspace/lineup/backend/venv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/p5/385n2cr95sq16x17334vsbnr0000gq/T/pip-install-xn4yfy51/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 /private/var/folders/p5/385n2cr95sq16x17334vsbnr0000gq/T/pip-record-kpdy8vo4/install-record.txt --single-version-externally-managed --compile --install-headers /Users/leebom/Documents/workspace/lineup/backend/venv/bin/../include/site/python3.6/xmlsec:
running install
running build
running build_ext
************************************************************************
Could not find xmlsec1 config. Are libxmlsec1-dev and pkg-config installed?

Perhaps try: xcode-select --install
************************************************************************
Command "/Users/leebom/Documents/workspace/lineup/backend/venv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/p5/385n2cr95sq16x17334vsbnr0000gq/T/pip-install-xn4yfy51/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 /private/var/folders/p5/385n2cr95sq16x17334vsbnr0000gq/T/pip-record-kpdy8vo4/install-record.txt --single-version-externally-managed --compile --install-headers /Users/leebom/Documents/workspace/lineup/backend/venv/bin/../include/site/python3.6/xmlsec" failed with error code 1 in /private/var/folders/p5/385n2cr95sq16x17334vsbnr0000gq/T/pip-install-xn4yfy51/xmlsec/

我已经做了以下工作:

  • 重新安装/更新我的xocde命令行工具
  • 尝试自制xmlsec包-结果消息是它已经安装。在
  • 还安装了pkg config,libxmlsec1 dev too。在

我几乎做了我能在谷歌搜索结果上找到的一切。。。但无法达到预期目的

这是我的要求.txt

^{pr2}$

谢谢。在


Tags: installpippytxtvarsetupcodeprivate
3条回答

检查Mac中的Libxmlsec1和pkg config包

brew install Libxmlsec1
brew install pkg-config
pip install xmlsec

我需要:

brew install pkg-config

我遇到了这个错误(虽然在Python2.7上),并且brew install Libxmlsec1修复了它。在

相关问题 更多 >