我尝试在M2Crypto
内安装pip
virtualenv
库,但我无法使其正常工作,
我已经完成sudo apt-get install python-dev
和sudo apt-et install python-m2crypto
,他们在系统中
还尝试安装pip install pyopenssl
这些是我追溯的最后几行(它太长了):
SWIG/_m2crypto_wrap.c: In function ‘dsa_get_g’:
SWIG/_m2crypto_wrap.c:6220:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
SWIG/_m2crypto_wrap.c: In function ‘dsa_get_pub’:
SWIG/_m2crypto_wrap.c:6228:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
SWIG/_m2crypto_wrap.c: In function ‘dsa_get_priv’:
SWIG/_m2crypto_wrap.c:6236:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
SWIG/_m2crypto_wrap.c: In function ‘dsa_check_key’:
SWIG/_m2crypto_wrap.c:6489:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
SWIG/_m2crypto_wrap.c: In function ‘dsa_check_pub_key’:
SWIG/_m2crypto_wrap.c:6493:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
SWIG/_m2crypto_wrap.c: In function ‘dsa_keylen’:
SWIG/_m2crypto_wrap.c:6497:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
SWIG/_m2crypto_wrap.c: In function ‘x509_name_get_der’:
SWIG/_m2crypto_wrap.c:7313:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
SWIG/_m2crypto_wrap.c: In function ‘ecdsa_sig_get_r’:
SWIG/_m2crypto_wrap.c:8127:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
SWIG/_m2crypto_wrap.c: In function ‘ecdsa_sig_get_s’:
SWIG/_m2crypto_wrap.c:8131:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
I also have
swig没有安装我的系统,任何关于它可能的想法?
提前致谢!
答案 0 :(得分:0)
我设法解决了它,这是一个版本问题,只是运行:
pip install M2Crypto==0.24.0
谢谢