ubuntu20.4子系统下安装xmlsec

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值