Python 试图通过easy_install安装mercurial
我使用的是活动Python 2.5.1、Mercurial 1.8.1和TortoiseHg 1.1.0 在Windows XP上所有x86 我试图在reviewboard中配置mercurial回购。为此 需要mercurial python模块 因此,当我试图通过easy_install安装mercurial时,我得到了 跟随误差Python 试图通过easy_install安装mercurial,python,review-board,Python,Review Board,我使用的是活动Python 2.5.1、Mercurial 1.8.1和TortoiseHg 1.1.0 在Windows XP上所有x86 我试图在reviewboard中配置mercurial回购。为此 需要mercurial python模块 因此,当我试图通过easy_install安装mercurial时,我得到了 跟随误差 C:\>easy_install mercurial==1.8.1 Searching for mercurial==1.8.1 Reading http:
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\cygwingcompiler.py中删除-mno cygwin occurrences后,我运行了easy\u 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:\>
请帮忙
关于从您的输出来看,easy_install似乎正在尝试使用需要一些cygwin部件的选项构建mercurial。如果您使用的是mingwgcc,您可能需要查看有关如何在windows中构建的说明 您使用1.8.1有什么原因吗?最新版本是2.1.2
在谷歌上搜索,可能也会对你有所帮助。上也有用于Windows的exe和msi安装程序 在我看来,乌龟改变了人们对包装背后的印象。我很难向我的同事解释如何在使用陆龟ECV时正确使用CVS 离题:为了你自己的其他目的,也可以尝试Git,而不是想法非常相似。我想吉特会赢的 msysgit Windows很不错,功能与原来的Linux相当,附带的Git Gui和gitk可能有着非常奇怪的外观Tcl/Tk,但它们非常适合基本的Git操作。我只是在谷歌上搜索了gcc:error:CreateProcess:没有这样的文件或目录,我发现: