2016-03-03 14 views

risposta

10

Il modulo i18n è stato rimosso in pygal-2.0.0, tuttavia, si trova ora nel plugin pygal_maps_world.

È possibile installarlo con pip install pygal_maps_world. Poi si può accedere COUNTRIES come pygal.maps.world.COUNTRIES:

from pygal.maps.world import COUNTRIES 

ciò che resta del modulo i18n possono essere importati con:

from pygal_maps_world import i18n 
+2

Grazie mille! Tuttavia sono stato in grado di utilizzare "da pygal_maps_world.i18n import COUNTRIES". – RandomCoder

+0

@ HelpMe: anche questo funzionerebbe! Posso indirizzarti a http://stackoverflow.com/help/someone-answers e http://stackoverflow.com/help/accepted-answer per informazioni su come gestire le risposte. – mhawke

Problemi correlati