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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM