-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Could not build wheels for PyMuPDF, which is required to install pyproject.toml-based projects #10669
Comments
PS D:\github\PaddleOCR> python -m pip install --upgrade pymupdf |
安装“Microsoft Visual C++ Build Tools”。 也不行,不知道是不是Python311的问题,是不是需要回退到Python310? |
执行 修改requirements.txt
note: This error originates from a subprocess, and is likely not a problem with pip. 看上去是Path给2022给错了,我换成2019试试。 |
遇到了相同的问题,尝试pip install "paddleocr>=2.0.1" --upgrade PyMuPDF==1.21.1,遇到了更多版本依赖报错 |
找到了问题: :) |
I think the best solution for this question is to use
|
right! same issue with python 3.11, but it's ok when using python 3.9 |
As the original issue mention in PyMuPDF Discussions #875 , this bugs is resolved in PyMuPDF 1.21.0 |
@tink2123 Additional information, due to the dependency conflict, paddleocr 2.7.0.3 depends on PyMuPDF<1.21.0, pip install "paddleocr>=2.0.1" --upgrade "PyMuPDF>=1.21.0" and introduce a new error of numpy 1.20 deprecated alias The requirements.txt SHOULD set module with specific version to avoid this problem. OR the docs SHOULD update install docs to: pip install "paddleocr>=2.7" -f --upgrade "PyMuPDF>=1.21.0" --no-deps |
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
系统环境/System Environment:
设备名称 WIN-JOP2I1VJLU8
处理器 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz 3.00 GHz
机带 RAM 32.0 GB (31.8 GB 可用)
设备 ID A706649D-5962-4BEB-9754-B86005248F4A
产品 ID 00454-40000-00001-AA972
系统类型 64 位操作系统, 基于 x64 的处理器
笔和触控 没有可用于此显示器的笔或触控输入
版本号/Version:Paddle: PaddleOCR: 问题相关组件/Related components:
python -m pip install paddlepaddle==2.5.1 -i https://mirror.baidu.com/pypi/simple
2.5.1
运行指令/Command Code:
python -m pip install paddlepaddle==2.5.1 -i https://mirror.baidu.com/pypi/simple
cd PaddleOCR
python -m pip install -r requirements.txt
完整报错/Complete Error Message:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyMuPDF
Building wheel for future (pyproject.toml) ... done
Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492053 sha256=d49b48f789d7cd29e93c035fdf14bb9f5e69d3ff28a24740c03e38085053b02a
Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\da\19\ca\9d8c44cd311a955509d7e13da3f0bea42400c469ef825b580b
Successfully built future
Failed to build PyMuPDF
ERROR: Could not build wheels for PyMuPDF, which is required to install pyproject.toml-based projects
btw:
注意,windows环境下,建议从这里下载shapely安装包完成安装, 直接通过pip安装的shapely库可能出现[winRrror 126] 找不到指定模块的问题。
https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely 报404,下载shapely安装包的链接已经失效。
https://github.com/PaddlePaddle/PaddleOCR/blob/static/doc/doc_ch/installation.md 这个md需要更新下下载链接。
The text was updated successfully, but these errors were encountered: