Where should I store M2Crypto files

我与影子孤独终老i 提交于 2019-12-12 03:53:18

问题


I am using pyCharm. I ran the windowss installer of M2CryptoWin64 from:
https://pypi.python.org/pypi/M2CryptoWin64 I first navigated to the location where I downloaded the M2CryptoWin64 (different location than the python file) and typed this command:

pip install --egg M2CryptoWin64

I successfully installed it. However, when I run my python scrypt, I get the following errors: Traceback (most recent call last):

  File "C:\Users\xxx\PycharmProjects\TLSscanner\scanner_v1.py", line 1, in <module>
    import M2Crypto
  File "C:\Users\xxx\PycharmProjects\TLSscanner\M2Crypto\__init__.py", line 22, in <module>
    import __m2crypto
ImportError: No module named '__m2crypto'

Then, I moven the library folder and repeated the installation command line, which told me that the library already installed. I tried again, the same problem.


回答1:


The last M2Crypto version (0.28.1 in the time of editing this answer) works with python 3! https://mta.openssl.org/pipermail/openssl-users/2018-February/007463.html



来源:https://stackoverflow.com/questions/41199858/where-should-i-store-m2crypto-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!