匹配Mercurial/Python/PyWin32组件版本

2024-04-20 13:18:50 发布

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

我在看两个不同的指南,在IIS上安装Windows HgWeb。first from mercurial developers上写着:

On Windows, your Python version must match the version used to compile Mercurial. Otherwise, you'll get "Invalid Magic Number" errors when trying to run the CGI.

second guide上写着:

Don’t waste time monkeying around with the installers. You need a version of Mercurial matching your Python install so get the source code!

这一切都很好,只是没有人愿意告诉您如何匹配Python和Mercurial的版本。我看不到任何指南给出了一个与版本号相关的地图。这是我的首要需求。例如,我使用的是Mercurial 1.9。我不知道Python的哪个版本与之相匹配。第二个指南说我的PyWin32版本也必须匹配。伟大的。在

如果版本匹配信息在网上不可用,我是否可以向Hg发出一个命令,将所有这些信息转储到我身上?在

同时,我发现我无法构建Mercurial源代码(这是因为我没有一个匹配的Python版本吗?)。在


Tags: thetofrom版本信息yourgetversion
1条回答
网友
1楼 · 发布于 2024-04-20 13:18:50

HgWeb

对于HgWeb,this Mercurial download page建议使用将Mercurial安装为python模块的版本,需要python2.6。在

从中,您将选择PyWin32的构建,并选择Python2.6的下载,因为他们为几个版本构建了它。在

这两个决策也有32位和64位版本。在

建筑物

main Mercurial download page提示python2.4到2.7是受支持的,因此如果您仍然希望自己构建,可以尝试使用2.6或2.7构建。building on Windows的wiki页面已经过时,提到了Mercurial 1.3,但也提到了python2.6。在

相关问题 更多 >