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的安裝根目錄\Lib\site-packages\pytesser下 (如沒有pytesser文件夾就新建一個)
2、新建一個pytesser.pth文件,內容為pytesser
pytesseract的安裝
命令:pip install pytesseract