i18n 模块无法导入
2017-08-27 23:24
639 查看
百度到的:I'm trying to
from pygal.i18 import COUNTRIESbut all I get is
ImportError:No module named'pygal.i18n'.The
i18nmodule was removed in pygal-2.0.0, however, it can now be found in the
pygal_maps_worldplugin.You can install that with
pip install pygal_maps_world. Then you can access
COUNTRIESas
pygal.maps.world.COUNTRIES:
from pygal.maps.world import COUNTRIESWhats left of the
i18nmodule can be imported with:
from pygal_maps_world import i18npygal-2.0.0 中移除了i18n,要用pip install pygal_maps_world安装模块,用用pygal.maps.world import COUNTRIES或者pygal_maps_world import i18n可以导入
相关文章推荐
- Pydev无法导入新python模块的解决方案
- python 通过PIP 安装的模块无法在pycharm中导入问题
- Eclipse + PyDev 无法导入模块
- 解决pycharm无法导入本地模块问题
- Pydev无法导入新python模块的解决方案
- Python中的sqlite模块无法导入的解决方案
- Eclipse + PyDev 无法导入模块
- python安装第三方包之后无法导入相应模块(一个容易忽略的bug)
- Android studio导入项目里面的模块无法运行
- Python无法导入自己编写的模块(Win7)
- Python3中无法导入ssl模块的解决办法
- 无法导入 configparser模块,import configparser报错解决办法
- python安装库后无法成功导入模块
- 解决Mac上PyDev无法导入某些模块的问题
- Python:Pycharm下无法导入安装好的第三方模块?
- PyCharm无法正常导入lib/site-package的模块问题
- Python学习第一步—解决无法导入自己写的模块的问题
- monkeyrunner遭遇random模块无法导入
- [MySQL]load data local infile向MySQL数据库中导入数据时,无法导入和字段不分离问题。
- IntelliJ IDEA 无法导入HttpServlet包解决方法