matplotlib / basemap

Plot on map projections (with coastlines and political boundaries) using matplotlib
MIT License
779 stars 392 forks source link

v1.2.0rel:No module named 'mpl_toolkits.basemap' #450

Closed ghost closed 5 years ago

ghost commented 5 years ago

There comes an error when i tried to

from mpl_toolkits.basemap import Basemap

saying: No module named 'mpl_toolkits.basemap' But when i run a commond sudo -H pip install -U git+https://github.com/matplotlib/basemap.git to "update" my basemap and do the same work, the error disappears. is v1.2.3rel the latest version?

WeatherGod commented 5 years ago

v1.2.0rel is the latest release. Also, please do not do sudo pip install. Use virtualenv or conda or some other environment management tool. Most likely, your environment is somehow corrupted because you are mucking about with the system python.

On Wed, Dec 26, 2018 at 12:45 PM ZezhiShau notifications@github.com wrote:

There comes an error when i tried to

from mpl_toolkits.basemap import Basemap

saying: No module named 'mpl_toolkits.basemap' But when i run a commond sudo -H pip install -U git+ https://github.com/matplotlib/basemap.git to "update" my basemap and do the same work, the error disappears. is v1.2.3rel the latest version?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matplotlib/basemap/issues/450, or mute the thread https://github.com/notifications/unsubscribe-auth/AARy-OfUPhgOEuAc0_koLmEbQWLMPdx0ks5u87XVgaJpZM4Zh846 .