首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装pythonbrew 2.6

无法安装pythonbrew 2.6
EN

Stack Overflow用户
提问于 2013-02-15 18:26:24
回答 2查看 895关注 0票数 3

我正在尝试使用pythonbrew安装python 2.6,但在运行命令时收到一些错误

代码语言:javascript
复制
pythonbrew install --configure="--enable-unicode=ucs4" 2.6

我在Archlinux下运行,并在那台机器上使用了很长时间的python2.7。但是我需要在我的机器上同时安装2.6和2.7,这样pythonbrew安装就可以了。

下面是错误:

代码语言:javascript
复制
Parser/pgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c
Parser/pgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude I./Include  -fPIC -DPy_BUILD_CORE -o Python/symtable.o Python/symtable.c
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include  -fPIC -DPy_BUILD_CORE -o Python/compile.o Python/compile.c
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include  -fPIC -DPy_BUILD_CORE -o Python/graminit.o Python/graminit.c
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include  -fPIC -DPy_BUILD_CORE -DSVNVERSION=\"`LC_ALL=C svnversion .`\" -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
gcc: error: directory": No such file or directory
make: *** [Modules/getbuildinfo.o] Error 1
EN

回答 2

Stack Overflow用户

发布于 2013-06-05 20:08:55

找到了此here的解决方案。基本上,svnversion的行为在某一时刻发生了变化,解决办法是在构建Python2.6.2时将名为svnversion的脚本放入路径中

代码语言:javascript
复制
#!/bin/sh
echo exported
票数 3
EN

Stack Overflow用户

发布于 2013-03-21 16:55:54

虽然我不知道是什么导致了这个错误,但可以通过使用Python 2.6.8来解决这个问题:

代码语言:javascript
复制
pythonbrew install --configure="--enable-unicode=ucs4" 2.6.8
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14892662

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档