python2 python3 m2crypto 安装(rsa 私钥文件加密)

转自作者:大道至简_Andy

原文链接:https://www.jianshu.com/p/b308357ef649

第一种方式:使用apt-get(以Python2版本进行测试的)

  1. sudo apt-get install python-m2crypto, M2Crypto将安装到系统Python库中。

第二种方式:从源码进行安装((兼容Python2,3))

  1. sudo apt-get install build-essential python3-dev python-dev libssl-dev swig

  2. pip install https://gitlab.com/m2crypto/m2crypto/repository/python3/archive.tar.gz

第三种方式:pip安装(不兼容Python3)

  1. pip install M2Crypto

以上安装方式在下列系统中的Python版本测试通过:

Debian 7.11, 8.8, 9.2

  Python 2.7.11, 2.7.13, 2.7.14, 3.5.4, 3.6.3

Ubuntu 16.04.3 LTS

  Python 2.7.3, 2.7.9, 2.7.11, 2.7.13, 2.7.14, 3.5.4, 3.6.3

转载于:https://www.cnblogs.com/shmily3929/p/8117258.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值