No module name PIL and No module name pytesser Visual Studio

僤鯓⒐⒋嵵緔 提交于 2019-12-13 03:58:44

问题


I have installed Anaconda on windows after my Python3.4 installation.

I'm referring this link : http://benedict-chan.github.io/blog/2014/11/07/setup-python-environment-in-visual-studio/ to setup anaconda from my VS2015 and Windows 10 like this:

I have written the following code by referring this : http://www.manejandodatos.es/2014/11/ocr-python-easy/ to read text from an image.

However, I'm getting below error:

What am I doing wrong?

Moreover, When I checked back the setting (from Tools ->Options) as below, its setting to default Python34.

Is it that, the Anaconda setting is not persistent , due to which the run time error is showing up?

Note: When I tried to install PIL using pip its saying PIL is install during Anaconda installation.

Edit:

The PIL error is resolved by setting Anaconda as default environment like below:

However, I'm getting same kind of error on the next line. That is "No module name pytesser"

Note: I was following this ( http://techqa.info/programming/tag/ocr?after=39453936 ); When I tried to install "tesseract" using pip its saying : Requirement already satisfied - Below message

 C:\ProgramData\Anaconda3\Lib\site-packages\pytesser>pip install tesseract

   Requirement already satisfied: tesseract in 
   c:\programdata\anaconda3\lib\site-packages

As per this( Pytesser in Python 3.4: name 'image_to_string' is not defined? ) . It looks like it only support 2.7 version, but not 3.. Still,

How can I resolve this? Please suggest? Thanks.

来源:https://stackoverflow.com/questions/45604862/no-module-name-pil-and-no-module-name-pytesser-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!