我正在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/
我已经做了以下工作:
我几乎做了我能在谷歌搜索结果上找到的一切。。。但无法达到预期目的
这是我的要求.txt
^{pr2}$谢谢。在
检查Mac中的Libxmlsec1和pkg config包
我需要:
brew install pkg-config
我遇到了这个错误(虽然在Python2.7上),并且
brew install Libxmlsec1
修复了它。在相关问题 更多 >
编程相关推荐