我已经成功安装了 msguniq (可以检查其版本),我尝试更改对 windows xp 的兼容性并以管理员身份运行它,但仍然收到此错误:
命令错误:找不到 msguniq。确保您有 GNU gettext 工具
安装 0.15 或更高版本。
我真的很困惑,因为我已经做了所有事情这个答案 https://stackoverflow.com/questions/7612259/django-makemessages-missing-xgettext-in-windows。我真的不知道如何修复它(还尝试将 gettext.exe 和 xgettext.exe 更改为 windows xp 兼容性)。
我遇到了完全相同的问题。归根结底,只需关闭并再次打开 cmd 窗口即可重新启动它。
当然,如果尚未安装 Gettext for Windows 0.15 或更高版本,您可能需要从以下来源安装:
http://mlocati.github.io/gettext-iconv-windows/ http://mlocati.github.io/gettext-iconv-windows/
要了解我如何编译它们(如果您想自己编译),请查看https://github.com/mlocati/gettext-iconv-windows https://github.com/mlocati/gettext-iconv-windows (source https://stackoverflow.com/questions/18985482/how-to-install-gnu-gettext-on-windows-7)
还要确保 gettext 的路径在您的系统 $PATH 中(python >> import sys >> print sys.path) - 如果没有,您可以在 virtualenv 文件夹 Lib\site-packages 中添加一个包含以下内容的 .pth 文件gettext 文件夹的路径。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)