fix: opencv-python-headless 锁 4.x——清华源 5.0.0.93 wheel 打包异常(site-packages 无 cv2 模块),OCR 仍不可用
This commit is contained in:
+1
-1
@@ -14,6 +14,6 @@ fi
|
||||
|
||||
# 环境修复:最后强制 headless(覆盖 rapidocr 拉回的 GUI 版)
|
||||
pip uninstall -y -q opencv-python 2>/dev/null || true
|
||||
pip install -q -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python-headless
|
||||
pip install -q -i https://pypi.tuna.tsinghua.edu.cn/simple "opencv-python-headless>=4.8,<5" # 5.x wheel 无 cv2 模块,锁定 4.x
|
||||
|
||||
exec python -u web_server.py
|
||||
|
||||
Reference in New Issue
Block a user