ubuntu 简易更新 matplotlib


本系列文章由 @yhl_leo 出品,转载请注明出处。
文章链接: http://www.jb51.cc/article/p-tzlfnvzq-qh.html

最近matplotlib版本升级到2.0,遇到一些工程使用了新版本,编译遭遇bug,才意识到这个问题,在matplotlib官网上,详细讲解了关于怎么安装。但是在关于如何卸载/移除已安装的matplotlib,所述并不清楚。

How to completely remove matplotlib中,讲述的卸载办法:

尝试之后,发现再去安装会有问题。

试着使用pip卸载与安装,非常顺利,不知道为什么官方文档里没写,方法如下(使用的环境:python 2.7 + pip 9.0):

  • uninstall
$ sudo pip uninstall matplotlib
  • install(latest)
$ sudo pip install matplotlib
  • check version
$ python2.7 -c 'import matplotlib; print matplotlib.__version__,matplotlib.__file__'

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...