尝试通过easy-ins安装mercurial

2024-09-19 23:28:25 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用的是activepython2.5.1、Mercurial 1.8.1和tortoisehg1.1.0 在Windows XP上(所有x86) 我试图在审查板中配置一个mercurial repo。为了这个 需要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删除-mno cygwin事件后\cygwincompiler.py我运行了easy_install mercurial==1.8.1。轨迹如下:

^{pr2}$

请帮忙 问候


Tags: installpycomhttpreleaseeggdisteasy
2条回答

{a1和msi}也有安装程序。在

在我看来,乌龟改变了人们对包装背后的想法。我很难向我的同事解释如何在使用龟甲时正确地使用CVS。在

主题外:为了你自己的其他目的,也可以尝试Git(http://git-scm.com/)这个想法非常相似。我想Git会赢的。在

msysgit(Windows)很不错,功能可以和Linux原版相媲美,附带的Git Gui和gitk看起来可能有点奇怪(Tcl/Tk),但它们非常适合Git的基本操作。在

从您的输出中可以看出,easy\u install正在尝试使用一个需要一些cygwin部件的选项来构建mercurial。如果您使用的是mingwgcc,您可能需要查看https://www.mercurial-scm.org/wiki/BuildingOnWindows中有关如何在windows中构建的说明。在

你使用1.8.1有什么原因吗?最新版本是2.1.2。在

在谷歌上搜索一下,Compiling with cython and mingw produces gcc: error: unrecognized command line option '-mno-cygwin'也可能对你有所帮助。在

相关问题 更多 >