嗨,我对python很陌生…所以请原谅我,如果这是一个愚蠢的问题。。。在
在安装了python 2.7.3之后,我想安装包StarCluster
,我尝试通过以下命令执行:
$ sudo easy_install StarCluster
但这导致在安装依赖包pycrypto
时出错,因此尝试使用以下命令单独安装:
但是得到下面的错误信息…我是否遗漏了一些我需要做的事情?在
Searching for pycrypto
Reading http://pypi.python.org/simple/pycrypto/
Reading http://pycrypto.sourceforge.net
Reading http://www.pycrypto.org/
Reading http://www.amk.ca/python/code/crypto
Best match: pycrypto 2.6
Downloading http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.tar.gz
Processing pycrypto-2.6.tar.gz
Running pycrypto-2.6/setup.py -q bdist_egg --dist-dir /var/folders/N3/N3c0k2wGFciTmmsVNCCRE++++TI/-Tmp-/easy_install-udIVh6/pycrypto-2.6/egg-dist-tmp-K6hQbK
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
src/MD2.c:147: fatal error: error writing to -: Broken pipe
compilation terminated.
lipo: can't open input file: /var/folders/N3/N3c0k2wGFciTmmsVNCCRE++++TI/-Tmp-//ccyyE9rh.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1
谢谢
HLM公司
编辑: 按照说明here使用4.2而不是4.1作为gcc的版本。在
试试他的:
^{pr2}$pip
是一个python包管理器:pip=pip安装包。然后然后可以启动python并导入starcluster:
您可以使用
pycrypto
执行相同的操作:相关问题 更多 >
编程相关推荐