python - Installed pytesser, but can't import it -


i trying install pytesser use ocr in script. readme in .zip source says:

pytesser has no installation functionality in release. extract pytesser.zip directory other scripts.

i extracted pytesser_v0.0.1.zip c:\python27\lib\site-packages\pytesser.

however, when try import in vs2013 (using from pytesser import *), no module named pytesser error.

what doing wrong? using python 2.7, way. know pil isn't supported in python 3+.

thanks!

update: found may able add modules editing pythonpath variable, seems both hacky , unreliable.

update 2: yay, got tumbleweed badge!

update 3: here files in c:\python27\lib\site-packages\pytesser:

 directory of c:\python27\lib\site-packages\pytesser  16 aug 2015  03:55 pm    <dir>          . 16 aug 2015  03:55 pm    <dir>          .. 16 aug 2015  03:55 pm               273 authors 16 aug 2015  03:55 pm                48 changelog 16 aug 2015  03:55 pm               424 errors.py 16 aug 2015  03:55 pm             1,410 fnord.tif 16 aug 2015  03:55 pm            20,607 fonts_test.png 16 aug 2015  03:55 pm               558 license 16 aug 2015  03:55 pm               337 notice 16 aug 2015  03:55 pm            38,668 phototest.tif 16 aug 2015  03:55 pm             2,560 pytesser.py 16 aug 2015  03:55 pm             2,652 readme 16 aug 2015  03:55 pm    <dir>          tessdata 16 aug 2015  03:55 pm           827,392 tesseract.exe 16 aug 2015  03:55 pm               669 util.py 

you not need edit pythonpath, c:\python27\lib\site-packages\ in pythonpath. can list tree extracted pytesser into? under c:\python27\lib\site-packages\pytesser should file called __init__.py, guess extracted files under additional directory in tree. try opening python prompt , typing import sys print sys.path verify c:\python27\lib\site-packages\ in fact in path.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -