Python中文
首页
教程
问答
标签
搜索
登录
注册
任何met python导入paramiko和Crypto错误,比如“不使用mpz-powm-sec”?
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>操作系统:redhat 5.2 i386</p> <p>Python:2.7</p> <p>错误如下:</p> <pre><code>Python 2.7.2 (default, Feb 7 2012, 11:16:30) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import paramiko /home/master/local/lib/python2.7/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning) </code></pre> <p>这是我的libgmp版本:</p> <pre><code> ldconfig -p |grep libgmp libgmpxx.so.3 (libc6, hwcap: 0x0000000004000000) => /usr/lib/sse2/libgmpxx.so.3 libgmpxx.so.3 (libc6) => /usr/lib/libgmpxx.so.3 libgmpxx.so (libc6) => /usr/lib/libgmpxx.so libgmp.so.3 (libc6, hwcap: 0x0000000004000000) => /usr/lib/sse2/libgmp.so.3 libgmp.so.3 (libc6) => /usr/lib/libgmp.so.3 libgmp.so (libc6) => /usr/lib/libgmp.so </code></pre> <p>所有这些似乎都与libgmp有关,这让我很困惑。请给我一些建议,thx!</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>我也遇到了这个问题,重建python(在我的例子中是2.7)是不够的。编译完新版gmp后,我不得不用pip重新安装pycrypto,事实上,我不知道是否有必要重建python,但我还是按照Kimvais的答案做了。</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
在python3中使用Scipy pearsonr函数
7 回答
在Python3中使用scipy对多个lorentzian进行数据拟合
3 回答
在Python3中使用Script=argv
8 回答
在python3中使用selenium webdriver进行未解析的回溯
10 回答
在python3中使用selenium和phantomjs的网页截图之前如何等待?
4 回答
在Python3中使用Selenium和Requests模块从网页获取文件
8 回答
在python3中使用SIGINT终止函数
2 回答
在Python3中使用SIGTERM时,允许进程完成而不是中断
10 回答
在python3中使用smtplib发送XML内容
2 回答
在python3中使用socket库(RFCOMM模式)重新连接蓝牙设备?
3 回答
在python3中使用sounddevice和numpy编写wav文件
3 回答
在python3中使用Sqlalchemy插入MySQL查找类型错误的原因
1 回答
在python3中使用sqlite、pandas和sqlalchemy很难让rollback工作
6 回答
在python3中使用SQLite的FTS3/4
10 回答
在Python3中使用struct.calcsize()和len()有区别吗?
10 回答
在python3中使用substring函数时发生TypeError
6 回答
在Python3中使用Tkinter entry小部件写入串行设备
10 回答
在python3中使用tkinter时,如何在每次按下函数时获得运行该函数的按钮?
4 回答
在python3中使用tkinter的子帧
8 回答
在Python3中使用tryexcept块时,如何避免使用未初始化的变量?
10 回答