小编Ger*_*han的帖子

在 FT2Font 中:无法加载人脸

我正在尝试绘制一个条形图。但它显示运行时错误,并显示 In FT2Font: Can not load face。在波顿。我已经尝试卸载并重新安装它。并尝试了另一种方法,但仍然无法正常工作。我认为代码是正确的,因为我在 Windows 笔记本电脑上成功运行了它。我的 jupyter 笔记本适用于 Mac python 2.7。

代码如下:

import numpy as np
import pandas as pd
obj = pd.Series([4, 7, -5, 3])
print type(obj)
obj
%matplotlib inline
obj.plot(kind = 'bar', figsize=[5,4])
Run Code Online (Sandbox Code Playgroud)

但它显示了一些错误:

<matplotlib.axes._subplots.AxesSubplot at 0x1114e69d0>
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
/anaconda2/lib/python2.7/site-packages/IPython/core/formatters.pyc in __call__(self, obj)
    332                 pass
    333             else:
--> 334                 return printer(obj)
    335             # Finally look for special method names
    336             method = get_real_method(obj, self.print_method)

/anaconda2/lib/python2.7/site-packages/IPython/core/pylabtools.pyc in <lambda>(fig)
    238 
    239     if …
Run Code Online (Sandbox Code Playgroud)

python anaconda jupyter-notebook

7
推荐指数
1
解决办法
7039
查看次数

标签 统计

anaconda ×1

jupyter-notebook ×1

python ×1