gpt4 book ai didi

python - 如何在 Mac OS 10.6.8 上为 Python 2.5 安装 pycrypto?

转载 作者:行者123 更新时间:2023-11-28 19:26:45 25 4
gpt4 key购买 nike

为了准备我的系统,我按照 blog 中的说明进行操作.重点是

From there, follow the defaults until you get to the “Custom Install on ‘Macintosh HD’” screen. Everything is checked but “MAC OS X 10.4 Support” and that is the program that you want to install.

解决了这个问题,我下载了 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

构建一些二进制文件后,我在转储底部收到以下错误:

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

我在安装过程中是否遗漏了什么?

最佳答案

我只是执行 pip install pycryptoeasy_install pycrypto

关于python - 如何在 Mac OS 10.6.8 上为 Python 2.5 安装 pycrypto?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9042433/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com