發表文章

目前顯示的是 7月, 2018的文章

在windows更新所有python套件

使用pip-review來協助更新 安裝後執行按a(All)即可 pip install pip-review pip-review --local --interactive 參考資料 https://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip

執行object detection 發生錯誤:cannot import name 'preprocessor_pb2'

執行object detection專案時,一切設定完成要進行train時 發生錯誤:cannot import name 'preprocessor_pb2' 解決方法: 執行指令: protoc object_detection/protos/*.proto --python_out=. 在https://github.com/tensorflow/models下載後 下來的根目錄 models / research /執行該指令

tesseract is not installed or it's not in your path

在進行驗證碼解析需要用到的python套件tesseract-ocr 始終會出現路徑找不到的問題 錯誤: tesseract is not installed or it's not in your path 解法: 修改套件原始路徑 C:\Users\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\pytesseract\pytesseract.py tesseract_cmd = 'tesseract' 改為 tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe' 將路徑改為另外安裝的Tesseract-OCR路徑就可以抓到了