ocr(paddle): pin paddlepaddle-gpu==3.3.1 to stop resolver backtracking

Unpinned paddlepaddle-gpu>=3.0.0 made pip backtrack for ~an hour across the 2 GB
package while satisfying paddleocr/paddlex constraints, so the isolated venv never
finished. Pinning the exact version (which ships a cp313 GPU wheel) makes it install
cleanly in one pass.
Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mw2KQiswmD69T45fTfjKwW
parent f8b86701
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
# exists for your Python — adjust the index URL / version if needed. For CPU-only, drop the # exists for your Python — adjust the index URL / version if needed. For CPU-only, drop the
# --extra-index-url line and use `paddlepaddle` instead of `paddlepaddle-gpu`. # --extra-index-url line and use `paddlepaddle` instead of `paddlepaddle-gpu`.
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# PIN the exact paddle wheel — an unpinned range makes pip's resolver backtrack for
# hours across a 2 GB package while satisfying paddleocr/paddlex constraints.
# 3.3.1 ships a cp313 GPU wheel (bundled CUDA; runs on GPU under a newer host CUDA).
--extra-index-url https://www.paddlepaddle.org.cn/packages/stable/cu126/ --extra-index-url https://www.paddlepaddle.org.cn/packages/stable/cu126/
paddlepaddle-gpu>=3.0.0 paddlepaddle-gpu==3.3.1
paddleocr>=2.7.0 paddleocr>=2.7.0
pypdfium2>=4.20.0 pypdfium2>=4.20.0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment