我是python的新手,我想安装和使用pytesser OCR库。我安装的所有其他模块都使用了easy_install,它工作得很好。但pytesser是第一个我必须使用Google Code的.zip文件手动安装的软件。
根据自述文件(https://code.google.com/p/pytesser/wiki/README)中的说明,我将上下文提取到我的C:\Python27\Script文件中。然而,当我尝试的时候:
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有什么想法吗?Windows 7. Python 2.7。我的其他脚本使用了PIL、Scrapy、Numpy等模块,运行得很好。
谢谢,汤姆
发布于 2013-03-23 20:18:02
您不应将C:\Python27\Scripts用于第三方模块,而应使用C:\Python27\Lib\site-packages。
发布于 2014-02-03 14:53:36
我不确定这是否是理想的解决方案,但这对我来说是可行的。如果有任何不正确的地方,请纠正我。
文件夹中
好了。
发布于 2017-04-27 02:36:22
所以我使用的是w10 64位。我花了一些时间来理解如何安装它才能使用它。
如何:
https://code.google.com/archive/p/pytesser/downloads
下载pytesser_v0.0.1.zip
解压缩
移动项目中的文件
在pytesser.py中将导入图像重命名为"from PIL import Image“
===尽情享受吧。
https://stackoverflow.com/questions/15567141
复制相似问题