Python在Linux下打包OpenCV库

2020-10-23  本文已影响0人  渣渣曦

1、安装tesseract

apt-get install tesseract-ocr

2、安装 python3-devel

sudo yum install python3-devel

3、安装python的opencv库

pip3 install opencv-python

4、安装python的ocr库

pip3 install pytesseract
pip3 install imutils

5、安装打包工具

pip3 install pyinstaller

6、把python文件打包成一个单一可执行文件

pyinstaller --onefile myocr.py
上一篇 下一篇

猜你喜欢

热点阅读