简体   繁体   中英

how to upgrade matplotlib version for python 2.7

How can I upgrade the version of matplotlib to 1.10 for python 2.7

在此处输入图片说明

Have you tried just installing it again via pip? Example pip command taken from here:

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:

activate vitual-environment-name

For 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. To do that use pip again and in your console type

pip install -U six

If that doesn't work try:

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

很容易更新模块

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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