zoukankan      html  css  js  c++  java
  • python识别验证码——PIL,pytesser,pytesseract的安装

    1.使用Python识别验证码需要安装Python的图像处理模块(PIL、pytesser、pytesseract)

    (安装过程需要pip,在我的Python中已经安装pip了,pip的安装就不在赘述了)

    PIL的安装

    法1:直接在DOS下用命令:pip install PIL 

    法2:http://effbot.org/downloads/#Imaging  下载安装:(官方库)

    法3:http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow  如遇到64位问题(非官方库)

             注意:下载和自己Python版本一致的pillow,下载后位whl 文件,安装命令:pip install whle文件路径

    pytesser的安装

    1、pytesser很好找,下载后将解压后的文件全部复制到你Python的安装根目录Libsite-packagespytesser下 (如没有pytesser文件夹就新建一个)

    2、新建一个pytesser.pth文件,内容为pytesser

    pytesseract的安装

    命令:pip install pytesseract

  • 相关阅读:
    CodeForces
    CodeForces
    CodeForces
    CodeForces
    CodeForces
    CodeForces
    CodeForces
    CodeForces
    Code froces 831 A. Unimodal Array
    无聊随便敲敲
  • 原文地址:https://www.cnblogs.com/MrRead/p/7650528.html
Copyright © 2011-2022 走看看