找不到PyCrypto和GMP库错误[Mac OS 10.6.3] [英] PyCrypto and GMP library not found error [Mac OS 10.6.3]

查看:84
本文介绍了找不到PyCrypto和GMP库错误[Mac OS 10.6.3]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装pycrypto-2.1.0,但尝试处理'python setup.py build'引起的问题:

I'm trying to install pycrypto-2.1.0 but attempt to do with 'python setup.py build' elicits:

running build
running build_py
running build_ext
warning: GMP library not found; Not building Crypto.PublicKey._fastmath.

我安装了GMP(gmp-4.3.2),它位于:/usr/local/lib

I installed GMP (gmp-4.3.2) and it's in: /usr/local/lib

如何让python/pycrypto识别我的系统上已经存在GMP?

How do I get python/pycrypto to recognize that GMP is already present on my system?

Mac OS:10.6.3 Python版本:2.6.1

Mac OS: 10.6.3 Python version: 2.6.1

推荐答案

sudo ln -s /usr/local/lib/libgmp.dylib /usr/lib/libgmp.dylib

这篇关于找不到PyCrypto和GMP库错误[Mac OS 10.6.3]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆