2012-04-10 167 views
1

我运行Ubuntu 11.10,gcc版本4.6.1。命令'gcc'失败,退出状态为1(安装psyco)

我一直在试图安装Psyco的,但不断收到此错误:

PROCESSOR = 'i386' 
running build 
running build_py 
running build_ext 
building 'psyco._psyco' extension 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DALL_STATIC=1 -Ic/i386 -I/usr/include/python2.7 -c c/psyco.c -o build/temp.linux-i686-2.7/c/psyco.o 
In file included from c/initialize.h:55:0, 
       from c/psyco.c:14: 
c/mergepoints.c:242:3: error: ‘JUMP_IF_FALSE’ undeclared here (not in a function) 
c/mergepoints.c:242:3: error: ‘JUMP_IF_TRUE’ undeclared here (not in a function) 
c/codegen.c:127:19: warning: ‘psyco_source_condition’ defined but not used [-Wunused-function] 
c/codegen.c:747:10: warning: ‘integer_lshift’ defined but not used [-Wunused-function] 
c/Objects/plistobject.c:115:10: warning: ‘PsycoList_SingletonNew’ defined but not used [-Wunused-function] 
error: command 'gcc' failed with exit status 1 

我已经安装的python-setuptools的,但没有到目前为止的工作。感谢您的建议。

+0

尝试安装build-essential,以及python2.x-dev(其中x是你的python版本) – Bartek 2012-04-10 11:27:17

+0

试过了,它们被安装到最新版本 – 2012-04-10 11:52:48

+0

Psyco已经死了。如果您需要速度,请考虑使用Cython或PyPy。 – 2012-04-10 14:34:12

回答

3

Google是你的朋友:psyco不会构建并且不能与Python 2.7一起使用,如相应的Ubuntu bug report中所记录的。

为什么需要Psyco?如果您需要优化紧密环路,可能需要Cython来救援。

-1

也许你应该得到 “https://github.com/develersrl/gccwinbinaries” 安装路径:C:/ MinGW和安装路径:C:/ MinGW的/ bin中。最后,找到distutils.cfg在Python安装目录d:/ Python26 /库/的distutils

+0

[build] compiler = mingw32 – 2017-09-26 02:32:12

+0

提问者表示他们使用Ubuntu,一个Linux发行版,而你的答案是非常特定于Windows的,并且完全针对你的安装。 – Avery 2017-09-26 02:58:13

相关问题