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 脚本
基础教程推荐
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
