Pycharm IDE尝试从sh加载django脚本而不是bash [英] Pycharm IDE tries to load django script from sh instead of bash
本文介绍了Pycharm IDE尝试从sh加载django脚本而不是bash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我尝试在Django中编译消息,我会发现这样的错误:
If i try to compilemessages in Django I get erros like this:
sh: msgfmt: command not found
<
while from bash (terminal) all these commands work fine.. How do I change Pycharm to run these commands from bash instead of sh ?
谢谢
推荐答案
这个问题可以解决通过安装 gettext
工具,在debian / ubuntu中,你可以执行 sudo apt-get install gettext
django doc 。
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.
这篇关于Pycharm IDE尝试从sh加载django脚本而不是bash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文