【发布时间】:2013-03-12 02:53:47
【问题描述】:
我是 python 新手,想安装和使用 pytesser OCR 库。我安装的所有其他模块,我都使用了easy_install,它运行良好。但是 pytesser 是我必须使用 Google Code 的 .zip 文件手动安装的第一个。
根据自述文件 (https://code.google.com/p/pytesser/wiki/README) 中的说明,我将上下文提取到我的 C:\Python27\Scripts 文件中。但是,当我尝试时:
from pytesser import *
在 Python Shell 中,我收到以下错误:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
from pytesser import *
ImportError: No module named pytesser
有什么想法吗?视窗 7。Python 2.7。我使用 PIL、Scrapy、Numpy 等模块的其他脚本运行良好。
谢谢, 汤姆
【问题讨论】:
-
您的 pytesser 文件是否与导入语句所在的文件(您正在编写的文件)位于同一目录中?
-
如何知道 python shell CLI 在哪里运行它的代码?
标签: python python-2.7 ocr tesseract