Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python mpl_toolkits installation issue

After command pip install mpl_toolkits I receive next error:

Could not find a version that satisfies the requirement mpl_toolkits (from versions: )

No matching distribution found for mpl_toolkits

I tried to google, but nothing helps. How can I solve this?

like image 626
Vladyslav Nikolaiev Avatar asked Jun 06 '16 15:06

Vladyslav Nikolaiev


People also ask

Is Mpl_toolkits part of Matplotlib?

The matplotlib mpl_toolkits. axes_grid1 toolkit is a collection of helper classes to ease displaying multiple images in matplotlib. While the aspect parameter in matplotlib adjust the position of the single axes, axes_grid1 toolkit provides a framework to adjust the position of multiple axes according to their aspects.

What is Mpl_toolkits Python?

mpl_toolkits. clifford. A python package for plotting the multivectors of Geometric Algebra, from the clifford package, using matplotlib . See the examples directory for more info. Unlike pyganja , this does all the plotting from within python, meaning that animations and interaction are possible.


2 Answers

It is not on PyPI and you should not be installing it via pip. If you have matplotlib installed, you should be able to import mpl_toolkits directly:

$ pip install --upgrade matplotlib ...  $ python >>> import mpl_toolkits >>>  
like image 165
alecxe Avatar answered Sep 25 '22 06:09

alecxe


It doesn't work on Ubuntu 16.04, it seems that some libraries have been forgotten in the python installation package on this one. You should use package manager instead.

Solution

Uninstall matplotlib from pip then install it again with apt-get

python 2:

sudo pip uninstall matplotlib sudo apt-get install python-matplotlib 

python 3:

sudo pip3 uninstall matplotlib sudo apt-get install python3-matplotlib 
like image 24
Charlie Lutaud Avatar answered Sep 25 '22 06:09

Charlie Lutaud