我安装了Anaconda和MacPorts来安装各种
python包,并在尝试导入matplotlib时收到以下错误:
bash-3.2$python
Python 2.7.8 |Anaconda 2.1.0 (x86_64)| (default, Aug 21 2014, 15:21:46)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
>>> import conda
>>> import matplotlib
Traceback (most recent call last):
File "", line 1, in
File "/Users/colinross/anaconda/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-macosx-10.5-x86_64.egg/matplotlib/__init__.py", line 169, in
from urllib2 import urlopen
File "/Users/colinross/anaconda/lib/python2.7/urllib2.py", line 104, in
import bisect
File "bisect.py", line 2, in
import matplotlib.pyplot as plt
File "/Users/colinross/anaconda/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-macosx-10.5-x86_64.egg/matplotlib/pyplot.py", line 27, in
import matplotlib.colorbar
File "/Users/colinross/anaconda/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-macosx-10.5-x86_64.egg/matplotlib/colorbar.py", line 32, in
import matplotlib.artist as martist
File "/Users/colinross/anaconda/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-macosx-10.5-x86_64.egg/matplotlib/artist.py", line 11, in
from matplotlib import docstring, rcParams
ImportError: cannot import name rcParams
有谁知道如何解决这一问题?