Import mpl_toolkits.basemap on windows?

I recently started using Python 3.5 and Anaconda on my Windows PC. I'm trying to build a map. However, when I'm in my Jupyter laptop and I type

import mpl_toolkits.basemap

I get the error message "no module name" 'mpl_toolkits.basemap' However, I have loaded the module in the same C: \ Users \ Geena file as the .matplotlib, .ipython, .jupyter, etc.

Does anyone know how I can fix this?

+4
source share
5 answers

anaconda .

python 3.5:
"Anaconda Prompt" "Anaconda Prompt" :

conda install -c conda-forge basemap-data-hires=1.0.8.dev0

, , - "".
​​ "import mpl_toolkits.basemap".

.

+6

Anaconda baseemap 1.0.7.
https://anaconda.org/anaconda/basemap

conda:
conda install -c https://conda.anaconda.org/anaconda basemap

+2

Anaconda, .

conda install basemap

.

+1

python 3 Windows. , conda install basemap python 3 Windows, , , python 3.

, python 2.7. : http://conda.pydata.org/docs/py2or3.html

python 2. : activate py27 (py27 - python 2.7).

conda install basemap .

+1

. , , matplotlib, :

pip install --upgrade matplotlib

mpl_toolkits matplotlib .

+1
source

Source: https://habr.com/ru/post/1625734/


All Articles