试图在Mac OSX小牛上安装pycrypto [英] Trying to install pycrypto on Mac OSX mavericks

查看:86
本文介绍了试图在Mac OSX小牛上安装pycrypto的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在尝试安装pycrypto,当我执行python setup.py build时,出现以下错误:

I am currently trying to install pycrypto and when I execute python setup.py build I receive this following error:

cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.9-intel-2.7/src/_fastmath.o -lgmp -o build/lib.macosx-10.9-intel-2.7/Crypto/PublicKey/_fastmath.so
ld: illegal text-relocation to '___gmp_binvert_limb_table' in /usr/local/lib/libgmp.a(mp_minv_tab.o) from '___gmpn_divexact_1' in /usr/local/lib/libgmp.a(dive_1.o) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1

我已经尝试过重新安装命令行工具并删除Xcode的旧实例.

I've already tried reinstalling the command line tools and removing old instances of Xcode.

任何帮助都将非常感谢

推荐答案

这对我有用. (如果您使用的是Xcode 5.1,应该可以使用)

This worked for me. (Should work if you are on Xcode 5.1)

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pycrypto

这篇关于试图在Mac OSX小牛上安装pycrypto的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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