首页 > 解决方案 > Matplotlib 版本与 Anaconda 版本不匹配

问题描述

我已经在 Ubuntu 16.04 LTS 上安装了 Anaconda2-5.1.0-Linux-x86_64,当我运行时,conda list我看到 matplotlib 版本应该是 2.1.2。但是当我运行 python 时,我得到版本是 2.0.2 :

$ python
Python 2.7.14 |Anaconda, Inc.| (default, Dec  7 2017, 17:05:42) 
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'2.0.2'

为什么 python 包确实指向 Anaconda 的 matplotlib 版本?

标签: pythonpython-2.7matplotlibanacondaconda

解决方案


推荐阅读