无法将matplotlib升级到1.3.1

del*_*ata 2 upgrade matplotlib ubuntu-12.04

评论sudo apt-get install python-matplotlib正在安装1.1.1rc版本,而不是最新版本.我需要matplotlib 1.3.1用于曲线之间的填充.没有找到导致成功的升级命令.在网络上没有任何帮助,成功运作.请帮忙.Ubuntu版本12.04.

Uli*_*ler 5

ubuntu存储库不包含最新版本.您可以使用pip安装最新版本.

如果您没有安装pip,请使用sudo apt-get install pip安装它.

然后用

sudo pip install --upgrade matplotlib
Run Code Online (Sandbox Code Playgroud)

将matplotlib升级到最新版本.

如果您收到类似的错误消息

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'
Run Code Online (Sandbox Code Playgroud)

执行

easy_install -U distribute
Run Code Online (Sandbox Code Playgroud)

然后再试sudo pip install --upgrade matplotlib一次.