Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed.

在设置django国际化时 执行命令
python manage.py makemessages -l zh_hans
报错,
CommandError: Can’t find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed.

MAC ,django1.9

解决方法:
1、Install Homebrew : /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
2、Install GNU gettext : brew install gettext
3、Create symlink : brew link gettext –force

第一步可以忽略,执行brew install gettext时会自动安装,第三步一定要执行,不执行第三步还会报错,切记!

你可能感兴趣的:(python)