2012-01-31 106 views
3

我試圖用easy_install在Windows 7機器上安裝M2Crypto。但是,我收到以下錯誤:在Windows上安裝M2Crypto

SWIG_m2crypto.i(31) : Error: Unable to find 'openssl\opensslv.h'
SWIG_m2crypto.i(45) : Error: Unable to find 'openssl\safestack.h'
SWIG_evp.i(12) : Error: Unable to find 'openssl\opensslconf.h'
SWIG_ec.i(7) : Error: Unable to find 'openssl\opensslconf.h'
error: Setup script exited with error: command 'swig.exe' failed with exit status 1

有什麼建議嗎?

我試着爲Windows安裝openssl

+1

通過PIP安裝:'pip安裝M2CryptoWin64'(用於64位Win)或'pip安裝M2CryptoWin32'(用於32位)。見[博客](http://the.randomengineer.com/2014/07/29/ssl-for-python-m2crypto-on-windows/) – Jon 2015-08-16 03:57:50

回答

4

M2Crypto頁面有一個Windows安裝程序。

無法在Windows上使用easy_install進行安裝。

+1

_ [M2Crypto](http://chandlerproject.org/Projects/MeTooCrypto#下載)_已損壞。 – ryyker 2017-01-26 23:55:40

1

安裝this M2Crypto binary for Windows 32 bit, Python 2.7

然後打開包管理器,然後輸入:

pypm install M2Crypto

注意:活動的Python 2.7.6 64不會在這裏工作的原因不明)

+0

可否請您發佈M2Crypto二進制文件?我無法在提供的鏈接中找到它。 – user2192774 2015-06-14 16:08:34

+0

這是一箇舊帖子,但上面鏈接指向的安裝程序位於_ [View Raw]下(https://github.com/edwardt/windows-nova-client/blob/master/3rdParty/ActivePython -2.7.2.5-win32-x86.msi?raw = true)_鏈接在其頁面的底部。 (至少在我發佈此評論的時候) – ryyker 2018-02-06 13:48:16