嗨,我是python...so的新手,如果这是个愚蠢的问题,请原谅我。
安装了python2.7.3之后,我想安装包StarCluster,通过命令尝试这样做:
$ sudo easy_install StarCluster但是,这会导致在安装依赖包pycrypto时出现错误,因此通过使用以下命令分别尝试安装该包:
$ easy_install pycrypto但是得到下面的错误,message....Am,我遗漏了一些我需要做的事情?
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
发布于 2012-11-28 22:45:03
编辑:按照here的说明使用4.2而不是4.1作为gcc的版本。
试试他的:
sudo apt-get install python-pippip是一个python包管理器: pip=pip安装包。然后,
sudo pip install StarCluster然后您可以启动python并导入星团:
python
import starcluster您也可以对pycrypto做同样的操作。
sudo pip install pycryptohttps://stackoverflow.com/questions/13615594
复制相似问题