python mpl_toolkits installation issue

后端 未结 4 820
灰色年华
灰色年华 2020-12-13 08:29

After command pip install mpl_toolkits I receive next error:

Could not find a version that satisfies the requirement mpl_toolkits (from v

相关标签:
4条回答
  • 2020-12-13 09:01

    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
    
    0 讨论(0)
  • 2020-12-13 09:16

    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
    >>> 
    
    0 讨论(0)
  • 2020-12-13 09:18

    if anyone has a problem on Mac, can try this

    sudo pip install --upgrade matplotlib --ignore-installed six
    
    0 讨论(0)
  • 2020-12-13 09:21

    I can't comment due to the lack of reputation, but if you are on arch linux, you should be able to find the corresponding libraries on the arch repositories directly. For example for mpl_toolkits.basemap:

    pacman -S python-basemap
    
    0 讨论(0)
提交回复
热议问题