我运行的是Ubuntu11.10,gcc 4.6.1版本。
我一直在尝试安装install,但一直收到这个错误:
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,但到目前为止还没有工作。谢谢你的建议。
发布于 2012-04-10 22:27:35
谷歌是你的朋友:正如相应的Ubuntu bug report中记录的那样,Python不会构建,也不能与Python2.7一起工作。
你为什么需要心理医生?如果您需要优化紧密循环,Cython可能会为您提供帮助。
发布于 2017-09-26 10:31:34
也许你应该得到"https://github.com/develersrl/gccwinbinaries“安装路径:C:/mingw和安装路径:C:/mingw/bin python,在.Finally安装目录D:/Python26/Lib/distutils中找到distutils.cfg
https://stackoverflow.com/questions/10087704
复制相似问题