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 deprecated, use int.from_bytes instead ? from cryptography.utils import int_from_bytes Processing /home/wxl/python-xmlsec ? Installing build dependencies ... done ? Getting requirements to build wheel ... done ? ? Preparing wheel metadata ... done Requirement already satisfied: lxml>=3.8 in /home/wxl/.local/lib/python3.8/site-packages (from xmlsec==1.3.13.dev3+g154c51d) (4.6.4) Building wheels for collected packages: xmlsec ? Building wheel for xmlsec (PEP 517) ... done ? Created wheel for xmlsec: filename=xmlsec-1.3.13.dev3+g154c51d-cp38-cp38-linux_x86_64.whl size=199832 sha256=4c97042bbde4c3bda14f8ee6585b19e3b505202405508958084fa99a5eff7066 ? Stored in directory: /home/wxl/.cache/pip/wheels/85/9d/77/64d4252c795f28348e48e35724eb5c39e4f71ec89e8316c85d Successfully built xmlsec Installing collected packages: xmlsec Successfully installed xmlsec-1.3.13.dev3+g154c51d
|