-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
安装paddleocr时出现错误:PyMuPDF无法安装 #7934
Comments
上面问题的第三条有一点小失误:不是PyMuPDF没有python3.10的wheel,而是paddleocr强制安装的1.18.7的PyMuPDF没有python3.10的wheel |
安装Paddleocr后,--upgrade PyMuPDF==1.19.0试试呢 |
这个case pymupdf/PyMuPDF#358 (comment) 里面提到的手动处理安装能不能解决问题? |
改用python3.9 |
Version 2.6.0.3 is forcing the installation of PyMuPDF 1.19 which has the same issue above on M1 Mac. Can we make it require PyMuPDF 1.20.2 instead? See from their release docs here:
|
I have test paddleocr2.6.0.3 in M1 mac with python3.6-3.10, it works fine |
Similar error when installing paddleocr-2.6.1.0 in a virtual environment in Python 3.9.9 on an M2 Mac:
|
I dont' know why we need specific version of PyMuPDF, remove the version works for me, (mac m1) |
mac 2015款 big Sur 系统、python3.6 |
有可以解决的办法吗 |
我没找到解决办法Sent from my iPhoneOn Dec 5, 2022, at 18:15, jiangf8686 ***@***.***> wrote:
有可以解决的办法吗
m1 芯片,python3.8 报一样的错误。
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Using PyMuPDF version 1.21.1 solved my problem on M1 Monterey:
|
It works for me ,thanks! |
This works for me! |
1 similar comment
This works for me! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
我也遇到了 |
现在python3.11的pymupdf也存在编译问题,只能用python3.10的安装。 |
pip install "paddleocr>=2.0.1" PyMuPDF==1.23.3 |
useful!! |
pip install "paddleocr>=2.6" --upgrade PyMuPDF==1.18.0 |
这个问题在python3.11.4上并没有解决,PaddleOCR 2.6.1 和 2.7 要求一个低版本的PyMuPDF,但是低版本的PyMuPDF不支持py311 |
Thank you, it works!! |
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
我仔细研究了一下,发现了如下问题:
1.问题是在安装paddleocr时需要安装PyMuPDF导致的,自动安装的PyMuPDF版本是1.18.7,在安装过程中会报错:
Cannot open include file: 'fitz.h': No such file or directory
,由此可以看出这是一个PyMuPDF1.18.7版本的问题2.如果手动安装PyMuPDF,在安装paddleocr时会自动卸载更高版本的PyMuPDF而重新安装1.18.7版本的PyMuPDF
3.手动安装PyMuPDF1.18.7版本,尝试下载wheel后进行安装,结果发现我电脑上的python是3.10版本,而PyMuPDF没有对应的3.10版本wheel,如果尝试pip install PyMuPDF=1.18.7,则在安装过程中会出现上述同样的错误:
Cannot open include file: 'fitz.h': No such file or directory
经过长时间的尝试,我并没有找到对应的解决方案,有次我得出结论,在我的电脑上python3.10环境下是无法安装PyMuPDF1.18.7版本的,最新的版本已经来到了1.20.2
请问开发者,有什么相对的解决方案吗?我认为这应该是python3.10用户共同存在的一个问题:因为安装paddleocr必然强制安装PyMuPDF1.18.7,而安装PyMuPDF必然报错
The text was updated successfully, but these errors were encountered: