[英]How do I install babel.messages module in Ubuntu?
I am trying to install using我正在尝试使用安装
sudo apt-get install babel.messages
but getting error:但得到错误:
ImportError: No module named babel.messages
导入错误:没有名为 babel.messages 的模块
Please let me know how to install in Ubuntu 16.04请让我知道如何在 Ubuntu 16.04 中安装
Try that with using this command:尝试使用此命令:
# pip install babel
It will work well它会运作良好
For Ubuntu versions older than 17.04, you can install python-babel from the Ubuntu repositories by running the following command in terminal:对于早于 17.04 的 Ubuntu 版本,您可以通过在终端中运行以下命令从 Ubuntu 存储库安装 python-babel:
sudo apt-get install python-babel
For Ubuntu versions from 17.04 and also on older versions you can install it via pip
, the Python package manager as:对于 17.04 及旧版本的 Ubuntu 版本,您可以通过
pip
安装它,Python 包管理器为:
pip install babel
If you don't have pip
installed yet, you can install it as:如果您还没有安装
pip
,您可以将其安装为:
sudo apt install python-pip
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.