Python条形码库错误

时间:2013-05-11 07:37:33

标签: python windows python-imaging-library

我在Windows 7中安装了pybarcode0.6 lib。安装完成后,我编写了以下代码来为我的模块生成条形码:

import barcode
from barcode.writer import ImageWriter
import base64
EAN = barcode.get_barcode_class('code39')
ean = EAN(barcode_string, writer=ImageWriter())
fullname = ean.save('code39_barcode')
name = open(fullname, "r+")
barcode_data = base64.b64encode(name.read())

但是,当我尝试运行代码时,出现以下错误:

The _imagingft C module is not installed

当我用Google搜索时,我能够找到question。根据给出的解决方案,我已经安装了PIL lib但我仍然面临同样的错误。

任何人都可以对此有所了解吗?

0 个答案:

没有答案