在installing OpenSSL之后,下载pre-built Swig executable,并确保openssl libraries are located in the defaultc:\pkg
,pip install m2crypto
结果:
...
C:\Program Files (x86)\gfortran\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Pyth
on27\include -IC:\Python27\PC -Ic:\pkg\include -Ic:\users\evbo\appdata\local\tem
p\pip_build_evbo\m2crypto\SWIG -c SWIG/_m2crypto_wrap.c -o build\temp.win32-2.7\
Release\swig\_m2crypto_wrap.o -DTHREADING
gcc: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
似乎binary installer solution for M2crypto已经不可用了,而且我看不到基于M2crypto install doc的任何错误。
如何解决此安装问题?是否依赖于旧版本的GCC?
https://gitlab.com/m2crypto/m2crypto项目提供m2cypto的Windows版本。
我从https://ci.appveyor.com/project/dwoz/m2crypto→https://ci.appveyor.com/project/dwoz/m2crypto/build/job/y7yri08k45mn5nlj/artifacts安装了
M2Crypto-0.30.1-cp27-cp27m-win_amd64.whl
轮子,它工作得很完美。下面是如何使用64位Python2.7的
pip
进行此操作:注意!目前,AppVeyor中的工件已过期,有关更新,请参见this bug。
2019年底了,安装M2Crypto仍然是一件痛苦的事!经过一番搜索,终于找到了下面的步骤:
在Windows10上使用新的Python2.7.1732bit安装。您可能需要先安装http://aka.ms/vcpython27。
如果您安装了64位Python,我想应该使用m2cyptowin64。
我很幸运-有一个非官方的二进制安装程序代替了chandlerproject.org/bin/view/Projects/MeTooCrypto被关闭:
https://github.com/saltstack/salt-windows-install/blob/master/deps/win32-py2.7/M2Crypto-0.21.1.win32-py2.7.msi
相关问题 更多 >
编程相关推荐