我在Windows XP(所有x86)上使用Active Python 2.5.1,Mercurial 1.8.1和TortoiseHg 1.1.0 我試圖在reviewboard中配置一個mercurial repo。對於它 需要善變的Python模塊 所以,當我嘗試安裝善變通過的easy_install我得到 以下錯誤試圖通過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感謝舒ZOMG陳,1.8 .1是一項要求,所以不能真正改變這一點。第二個鏈接確實有幫助,但現在還有另一個問題。從distutils \ cygwinccompiler.py中刪除-mno-cygwin後,我運行easy_install mercurial == 1.8.1。跟蹤是folows:
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' and I found:http://stackoverflow.com/questions/3848357/gcc-createprocess-no-such-file-or-目錄 – 2012-04-26 18:31:13