xmlsec在ubuntun20.4下安装老是报错:
ERROR: Could not build wheels for xmlsec which use PEP 517 and cannot be installed directly
各种尝试失败!!!
1.安装必要的依赖
sudo apt-get install pkg-config libxml2-dev libxmlsec1-dev libxmlsec1-openssl
2. 更新
sudo apt-get update
3. 源码安装python-xmlsec
git clone https://github.com/mehcode/python-xmlsec.git
cd python-xmlsec
pip install .
wxl@WXL:~/python-xmlsec$ pip install .
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecate

本文介绍了解决在Ubuntu 20.4环境下安装xmlsec遇到的错误:无法直接构建轮子文件的问题。通过安装必要的依赖包,更新软件包列表,并采用源码方式安装python-xmlsec,最终成功解决了安装过程中的报错。
最低0.47元/天 解锁文章
1387

被折叠的 条评论
为什么被折叠?



