can not upgrade matplotlib to 1.3.1

♀尐吖头ヾ 提交于 2019-12-13 15:33:45

问题


The comment sudo apt-get install python-matplotlib is installing 1.1.1rc version, not the latest version. I need the matplotlib 1.3.1 for hatch fill between curves. No upgradation command found that lead to success. Nothing helpful in the web, that successfully works. Please help. Ubuntu version 12.04.


回答1:


The ubuntu repositories do not contain the most recent versions. You can use pip to install the latest versions.

If you don't have pip installed, use sudo apt-get install pip to install it.

Then use

sudo pip install --upgrade matplotlib

to upgrade matplotlib to the most recent version.

In case, you get an error message like

Running setup.py egg_info for package matplotlib
The required version of distribute (>=0.6.28) is not available, and can't be installed while this script is running. Please install a more recent version first, using 'easy_install -U distribute'

execute

easy_install -U distribute

and try sudo pip install --upgrade matplotlib again.



来源:https://stackoverflow.com/questions/22104764/can-not-upgrade-matplotlib-to-1-3-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!