简体   繁体   English

如何升级python 2.7的matplotlib版本

[英]how to upgrade matplotlib version for python 2.7

How can I upgrade the version of matplotlib to 1.10 for python 2.7 如何将python 2.7的matplotlib版本升级到1.10

在此处输入图片说明

Have you tried just installing it again via pip? 您是否尝试过通过pip重新安装? Example pip command taken from here: 此处获取的示例pip命令

python -mpip install -U matplotlib

Do you use a virtual environment? 您是否使用虚拟环境? If you do - you will have to activate it first. 如果这样做-您将必须先激活它。 For this go to the console and type 为此,转到控制台并键入

For windows: 对于Windows:

activate vitual-environment-name

For ubuntu: 对于ubuntu:

source activate virtual-environment-name

After that (and if you don't have a virtual environment) just type: 之后(如果您没有虚拟环境),只需键入:

pip install -U matplotlib

If that doesn't work try:

python -m pip install -U matplotlib

But in your case the version of six should be >= 1.10. 但是在您的情况下,六个版本应为> = 1.10。 To do that use pip again and in your console type 为此,请再次在控制台中使用pip

pip install -U six

If that doesn't work try:

python -m pip install -U six
pip install -U matplotlib 

很容易更新模块

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM