How to install gnu gettext (>0.15) on windows? So I can produce .po/.mo files in Django

后端 未结 6 916
天命终不由人
天命终不由人 2020-12-19 02:17

When runing django make messages:

./manage.py makemessages -l pt

I get:

CommandError: Can\'t find msguniq. Mak         


        
6条回答
  •  醉话见心
    2020-12-19 02:41

    Let me save you many hours that I had to spend in order to solve this.

    One of the possibilities is that after you have successfully done all the above and done

    pip install python-gettext
    

    you may have improperly configured your IDE or venv. In order to bypass this, go to the command prompt, navigate to your root folder and run py manage.py makemessages from there. It will work.

提交回复
热议问题