How to import m2crypto library into python

17,278

usually just doing import m2crypto is sufficient

you may need to easy_install m2crypto first or maybe even pip install m2crypto

If you are on windows you may need the Visual Studio DLL to compile it

Share:
17,278
Jury A
Author by

Jury A

Updated on August 08, 2022

Comments

  • Jury A
    Jury A almost 2 years

    I need to work with m2crypto library. How can I import it to my .py file? I use Eclipse.

  • Mikko Ohtamaa
    Mikko Ohtamaa over 11 years
    For installing Python packages please read opensourcehacker.com/2012/09/16/…
  • Jury A
    Jury A over 11 years
    I am a windows user. The code line is: from M2Crypto import SSL, when I run the code, I get: ImportError: No module named M2Crypto. I alreay installed .msi m2crypto package from: chandlerproject.org/Projects/MeTooCrypto#Contributed%20Build‌​s as well as Win64 OpenSSL v1.0.1c Light from: slproweb.com/products/Win32OpenSSL.html. Not sure what else I can do ?
  • Matthias
    Matthias over 11 years
    You installed a 64bit version of SSL. Are you using a 64bit version of Python and the 64bit version of M2Crypto?