After installing OpenSSL, downloading the pre-built Swig executable, and ensuring the openssl libraries are located in the default c:\\pkg
, pip install m2
The https://gitlab.com/m2crypto/m2crypto project provides Windows builds of M2Crypto.
You can find wheels for current Python versions from their AppVeyor builds at https://ci.appveyor.com/project/dwoz/m2crypto.
For example, to install the M2Crypto 0.35.2 from https://ci.appveyor.com/project/dwoz/m2crypto → https://ci.appveyor.com/project/dwoz/m2crypto/build/job/y7yri08k45mn5nlj/artifacts with pip
for 64-bit Python 3.8, run:
pip install \
https://ci.appveyor.com/api/buildjobs/jw1kqpwsbur77mxi/artifacts/dist/M2Crypto-0.35.2-cp38-cp38-win_amd64.whl
NB! The artifacts may expire in AppVeyor, see this bug for updates.