小编use*_*780的帖子

Python rcParams错误

我安装了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 "<stdin>", line 1, in <module>
  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 <module>
    from urllib2 import urlopen
  File "/Users/colinross/anaconda/lib/python2.7/urllib2.py", line 104, in <module>
    import bisect
  File …
Run Code Online (Sandbox Code Playgroud)

python matplotlib anaconda

6
推荐指数
1
解决办法
4638
查看次数

标签 统计

anaconda ×1

matplotlib ×1

python ×1