您的位置:首页 > 编程语言 > Python开发

i18n 模块无法导入

2017-08-27 23:24 639 查看
百度到的:I'm trying to
from pygal.i18 import COUNTRIES
but all I get is
ImportError:No module named'pygal.i18n'.
The
i18n
module was removed in pygal-2.0.0, however, it can now be found in the
pygal_maps_world
plugin.You can install that with
pip install pygal_maps_world
. Then you can access
COUNTRIES
as
pygal.maps.world.COUNTRIES
:
from pygal.maps.world import COUNTRIES
Whats left of the
i18n
module can be imported with:
from pygal_maps_world import i18n
pygal-2.0.0 中移除了i18n,要用pip install pygal_maps_world安装模块,用用pygal.maps.world import COUNTRIES或者pygal_maps_world import i18n可以导入
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python pygal