【发布时间】:2012-04-25 09:25:15
【问题描述】:
我正在使用 Active Python 2.5.1、Mercurial 1.8.1 和 TortoiseHg 1.1.0 在 Windows XP(所有 x86)上 我正在尝试在评论板中配置一个 mercurial 回购。为此它 需要 mercurial python 模块 因此,当我尝试通过 easy_install 安装 mercurial 时,我得到了 跟随错误
C:\>easy_install mercurial==1.8.1
Searching for mercurial==1.8.1
Reading http://pypi.python.org/simple/mercurial/
Reading http://mercurial.selenic.com/
Reading http://www.selenic.com/mercurial
Reading http://mercurial.selenic.com/release/
Best match: mercurial 1.8.1
Downloading http://mercurial.selenic.com/release/mercurial-1.8.1.tar.gz
Processing mercurial-1.8.1.tar.gz
Running mercurial-1.8.1\setup.py -q bdist_egg --dist-dir c:
\docume~1\username\locals~1\temp\easy_install-7l0ykf
\mercurial-1.8.1\egg-dist-tmp-egcnt6
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: Setup script exited with error: command 'gcc' failed with exit
status 1
我已经通过MinGW安装了gcc
谢谢 shu zOMG chen,1.8.1 是一个要求,所以不能真正改变它。第二个链接确实有帮助,但现在还有另一个问题。从 distutils\cygwinccompiler.py 中删除 -mno-cygwin 出现后,我运行了 easy_install mercurial==1.8.1。跟踪如下:
C:\>easy_install mercurial==1.8.1
Searching for mercurial==1.8.1
Reading http://pypi.python.org/simple/mercurial/
Reading http://mercurial.selenic.com/
Reading http://www.selenic.com/mercurial
Reading http://mercurial.selenic.com/release/
Best match: mercurial 1.8.1
Downloading http://mercurial.selenic.com/release/mercurial-1.8.1.tar.gz
Processing mercurial-1.8.1.tar.gz
Running mercurial-1.8.1\setup.py -q bdist_egg --dist-dir c:\docume~1\username\locals~1\temp\easy_install-05el_6\mercurial-1.8.1\egg-dist-tmp-zsfye0
gcc: error: CreateProcess: No such file or directory
error: Setup script exited with error: command 'gcc' failed with exit status 1
C:\>
请帮忙 问候
【问题讨论】:
-
我刚刚搜索了
gcc: error: CreateProcess: No such file or directory这个词,我发现:stackoverflow.com/questions/3848357/…
标签: python review-board