降级matplotlib会在spyder IDE中引发错误的键错误

时间:2016-05-08 08:33:30

标签: python matplotlib spyder downgrade

我在Ubuntu 12.04 LTS发行版上运行Python 2.7.3。我使用spyder 2.9.1作为IDE。

正如我的另一个Stackoverflow post详细介绍的那样,我将matplotlib从 1.1 升级到 1.5.1 ,但却发现IDE与之间存在已确认的冲突。 matplotlib 1.5.1。然后我将matlplotlib从 1.5.1 降级为 1.4.3 ,这是之前稳定的版本。

我重新获得了升级后丢失的spyder的核心功能。但是,现在控制台会抛出以下警告:

Python 2.7.3 (default, Jun 22 2015, 19:33:41) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Bad key "axes.prop_cycle" on line 2 in
/usr/local/lib/python2.7/dist-packages/matplotlib/mpl-data/stylelib/seaborn-colorblind.mplstyle.
You probably need to get an updated matplotlibrc file from
http://matplotlib.sf.net/_static/matplotlibrc or from the matplotlib source distribution

<tens of these bad key notifications with the same suggestion>

Imported NumPy 1.11.0, SciPy 0.9.0, Matplotlib 1.4.3
Type "scientific" for more details.
>>> 

http://matplotlib.sf.net/_static/matplotlibrc上的文件很容易访问。我已经看到这个文件已经存在于我的计算机中的5个位置:

me@computer:~$ locate matplotlibrc
/etc/matplotlibrc
/home/me/Downloads/programs/ParaView-4.3.1-Linux-64bit/lib/paraview-4.3/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc
/opt/paraview/ParaView-4.1.0-Linux-64bit/lib/paraview-4.1/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc
/opt/paraview/ParaView-4.3.1-Linux-64bit/lib/paraview-4.3/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc
/usr/local/lib/python2.7/dist-packages/matplotlib/mpl-data/matplotlibrc

问题是:

  • 复制并粘贴matplotlibrc我应该做的一切吗? (奇怪的是pip并没有为此烦恼...)
  • 如果是这样,我应该更新这5次事件中的一部分吗? (事实上​​,另一个程序,Paraview,使用它似乎使问题复杂化......)

感谢您帮助我。

0 个答案:

没有答案