[英]How do I install pycrypto for Python 2.5 on Mac OS 10.6.8?
To prepare my system, I followed the instructions from this blog . 为了准备我的系统,我按照这个博客的说明进行操作。 The salient point is
重点是
From there, follow the defaults until you get to the “Custom Install on 'Macintosh HD'” screen.
从那里,按照默认值,直到进入“Macintosh HD'上的自定义安装”屏幕。 Everything is checked but “MAC OS X 10.4 Support” and that is the program that you want to install.
一切都已检查,但“MAC OS X 10.4支持”,这是您要安装的程序。
Having that out of the way, I downloaded the PyCrypto tarball, and tried to install it: 完成后,我下载了PyCrypto tarball,并尝试安装它:
$ curl -O http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.5.tar.gz
$ tar xvzf pycrypto-2.5.tar.gz
$ cd pycrypto-2.5
$ python2.5 setup.py install
After building some binaries, I get the following errors at the bottom of the dump: 构建一些二进制文件后,我在转储底部出现以下错误:
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/hk/hkor0sZBGkuucGbVfeQgO++++TI/-Tmp-//ccRzz4H0.out
error: command 'gcc' failed with exit status 1
Is there anything I missed during installation? 在安装过程中有什么我错过的吗?
您需要在Mac OS X上成功安装pycrypto:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pycrypto
我只是做pip install pycrypto
或easy_install pycrypto
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.