开发者社区> 问答> 正文

win上cygwin无法编译安装python 2.7.x 400 请求报错 

cygwin最新py只有2.6.x,但诸如{} format这种问题只能在2.7.x以上跑,就打算自己编译个2.7.x了,找了下资料,http://www.tux.org/~mayer/cygwin/python/index.html,按着做到 make 部分,就出错了。
联系作者还没回复,想来这里问问,有知道什么问题的吗?或者有人用自己的方法成功编译过2.7.x吗?谢谢

环境:

Win7 SP1 32bit

cygwin 2.774

Python 2.7.2 + cygwin-patch

gcc -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE \
      -DSVNVERSION="\"`LC_ALL=C svnversion .`\"" \
      -DHGVERSION="\"`LC_ALL=C `\"" \
      -DHGTAG="\"`LC_ALL=C `\"" \
      -DHGBRANCH="\"`LC_ALL=C `\"" \
      -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
./Modules/getbuildinfo.c: In function `_Py_svnversion':
./Modules/getbuildinfo.c:63: error: missing terminating " character
./Modules/getbuildinfo.c:63: error: parse error before ';' token
Makefile:539: recipe for target `Modules/getbuildinfo.o' failed
make: *** [Modules/getbuildinfo.o] Error 1

展开
收起
kun坤 2020-05-30 15:01:09 442 0
1 条回答
写回答
取消 提交回答
  • 问题一样######这问题原来还在啊。呵呵,联系了patch的作者也无果,后来自己再细心看了下error:./Modules/getbuildinfo.c: In function `_Py_svnversion':,关键就在这,还是老问题,依赖问题;subversion没装,装上后就OK了~######哦######为什么会依赖subversion呢?

    2020-05-30 15:01:15
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载