没有模块名PIL,也没有模块名pytesser Visual Studi

2024-05-10 10:11:07 发布

您现在位置:Python中文网/ 问答频道 /正文

在安装Python3.4之后,我在windows上安装了Anaconda。在

我指的是这个链接:http://benedict-chan.github.io/blog/2014/11/07/setup-python-environment-in-visual-studio/从我的VS2015和Windows 10安装Python,如下所示:

enter image description here

我通过引用以下代码编写了以下代码:http://www.manejandodatos.es/2014/11/ocr-python-easy/从图像中读取文本。在

但是,我得到以下错误:

enter image description here

我做错什么了?在

此外,当我检查了下面的设置(从工具->选项)时,它的设置是default Python34。在

enter image description here 是不是,水蟒的设置不是持久的,因此出现了运行时错误?在

注意:当我试图使用pip安装PIL时,它说PIL是在Anaconda安装期间安装的。在

编辑:

通过将Anaconda设置为默认环境来解决PIL错误,如下所示:

enter image description here

然而,我在下一行也遇到了同样的错误。那就是“没有模块名pytesser”

注意:我在跟踪这个(http://techqa.info/programming/tag/ocr?after=39453936);当我试图使用pip安装“tesseract”时,它的意思是:requirementalreadyselied-Below消息

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

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

根据这个(Pytesser in Python 3.4: name 'image_to_string' is not defined?)。看起来它只支持2.7版本,但不支持3。。不过

我如何解决这个问题? 请提出建议?谢谢。在


Tags: pip代码inhttppil链接windowspackages