Pycharm IDE tries to load django script from sh instead of bash(Pycharm IDE 尝试从 sh 而不是 bash 加载 django 脚本)
问题描述
如果我尝试在 Django 中编译消息,我会得到如下错误:
If i try to compile messages in Django I get erros like this:
sh: msgfmt: command not found
虽然从 bash(终端)所有这些命令都可以正常工作.我如何更改 Pycharm 以从 bash 而不是 sh 运行这些命令?
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,对于 windows 的解释在 django文档.
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.
另请参阅 此 和 this 用于其他 SO 和解释.
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 而不是 bash 加载 django 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Pycharm IDE 尝试从 sh 而不是 bash 加载 django 脚本
基础教程推荐
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
