Pycharm IDE tries to load django script from sh instead of bash

前端 未结 2 925
礼貌的吻别
礼貌的吻别 2021-01-22 18:41

If i try to compile messages in Django I get erros like this:

sh: msgfmt: command not found

while from bash (terminal) all these commands work

2条回答
  •  鱼传尺愫
    2021-01-22 19:16

    This problem can be solved by installing gettext tool, in debian/ubuntu you can execute sudo apt-get install gettext, for windows is explained in django doc.

    Also see this and this for others SO and explanations.

    I got the same error message but from other cause and solve it in this way.

提交回复
热议问题