python - Error in import M2Crypto -
i need use m2crypto in code. downloaded library zip file from: https://github.com/martinpaljak/m2crypto unzipped file. inside zipped file, found folder named: m2crypto, copied it, , paste in same directory code .py file resides.
i added line
from m2crypto import rsa, x509
but getting error:
import __m2crypto importerror: no module named '__m2crypto'
can me right way import external library python code? using windows system , type code using notepad++ please, consider in answer.
edit: use python 3.4
to install m2crypto in windows, download 2 files (x64 or x86 version depends on system) link: https://github.com/dsoprea/m2cryptowindows. unzip 2 files in c: directory. then, type command:
c:\python27\scripts>pip install --egg m2cryptowin64
note: in command, used m2cryptowin64 because installed. might need change if downloaded x86 version.
Comments
Post a Comment