Fixing quot;warning: GMP or MPIR library not found; Not building Crypto.PublickKey._fastmathquot; error on Python 2.7 with CentOS 6.4(修复“警告:未找到 GMP 或 MPIR 库;不构建 Crypto.PublickKey._fastmathCentOS 6.4 上的 Python 2.7 错误)
问题描述
我正在使用 Python 2.7(通过 PythonBrew 脚本安装)运行 CentOS 6.4 服务器
I'm running a CentOS 6.4 server with Python 2.7 (installed via PythonBrew script)
我通过 'yum install gmp' 安装了 gmp和通过'yum install python-devel'安装的python-devel(但它适用于python 2.6系列)
I have gmp installed via 'yum install gmp' and python-devel installed via 'yum install python-devel' (but it's for python 2.6 series)
我正在尝试在我的服务器上安装 pycrypto,但它给了我
I'm trying to install pycrypto on my server, but it's giving me
warning: GMP or MPIR library not found; Not building Crypto.PublickKey._fastmath
有什么方法可以让 pip '识别'我的 gmp 安装?
Is there any way to make pip 'recognize' my gmp installation?
谢谢:D
推荐答案
我在 Centos 6.4 上尝试使用 pip 在系统级别安装 Fabric 时遇到上述错误.(Fabric 使用 pycrypto).
I got the above error when trying to install Fabric at the system level on Centos 6.4 using pip. (Fabric uses pycrypto).
warning: GMP or MPIR library not found; Not building Crypto.PublickKey._fastmath
这就是我的工作方式:
yum install gmp-devel
sudo pip uninstall ecdsa pycrypto paramiko fabric
# clear out the pip build dirs
rm -rf /tmp/pip-*
# make sure the directory containing libgmp.so.3 is on the python path
export LD_LIBRARY_PATH="/usr/lib64:$LD_LIBRARY_PATH"
pip install fabric
这篇关于修复“警告:未找到 GMP 或 MPIR 库;不构建 Crypto.PublickKey._fastmath"CentOS 6.4 上的 Python 2.7 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:修复“警告:未找到 GMP 或 MPIR 库;不构建 Crypto.PublickKey._fastmath"CentOS 6.4 上的 Python 2.7 错误


基础教程推荐
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 求两个直方图的卷积 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- 包装空间模型 2022-01-01