I am trying to install matplotlib under Windows Vista. Both python and numpy work for me.
I installed matplotlib via the basemap-1.0.2.win32-py2.7 and followed the official instructions . But executing from matplotlib import * gives me the following error:
basemap-1.0.2.win32-py2.7
from matplotlib import *
No module named matplotlib
Any ideas how to get matplotlib to work?
basemap is not an installer for matplotlib.basemap is a matplotlib toolkit library for building 2D data on maps, you need to install matplotlib yourself to use it.
You can get matplotlib from here
you can install pip install matplotlib
pip install matplotlib
Before doing this, make sure you have already installed setuptools, numpy, python-dateutil, pytz, pyparsing, and cycler .
setuptools, numpy, python-dateutil, pytz, pyparsing, and cycler
from pylab import *
This works by properly setting scipy / pylab / matplotlib by default. And so you get started:
> hist(randn(10000)) > show()
Matplotlib is part of the pylab suite
If you install matplotlib under Windows using anaconda. Here are the steps ..
I am using Anaconda 1.8.7
This should do the trick. For specific versions and for installation in specific environments in annaconda, you can use the = and -n / name option
https://conda.io/docs/commands/conda-install.html Installing Matplotlib using the command line / Annaconda Terminal
Open command line
C: \ Users \ Uname> python -m pip install matplotlib
Matplotlib requires some of the following dependencies:
FreeType libpng NumPy setuptools cycler dateutil kiwisolver pyparsing
Source: https://habr.com/ru/post/1380281/More articles:Firemonkey USB Plug / Displug Event Capture - event-handlingHow can I create a Multi Language Dictionary Cross Crossble database? - database-designFckeditor removes empty tags! How to fix? - javascriptWhy does the ActiveMQ message server require a JDK, not a JRE? - jmsMake another borderless application window - objective-cCalling function with a variable number of arguments from a function with a variable number of arguments - c ++https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1380283/warning-instance-method-methodname-not-found-return-type-defaults-to-id-while-it-exist-and-works-fine&usg=ALkJrhhuwho5sEmPDWrg4sLBsrJ54p2yTgCSS Positioning Issues - user-interfaceParse json attribute - javascriptCompass style - difference between list lines and horizontal list - cssAll Articles