跳至内容
菜单
此问题已终结
2 回复
829 查看

I did the exact same but in windows.

pip install "python-doctr[torch]" returns Requirement already satisfied.

But then, from doctr.io import DocumentFile returns ModuleNotFoundError: No module named 'doctr.io'; 'doctr' is not a package

In my case, pip list is showing me the installation python-doctr 0.7.0

Installing it from source had the same result. can u help?


形象
丢弃
最佳答案

Hi,
May be if you are using a different python version to run other than in which the installation is made ? Can you ensure you are installing the package in the same version which is used to run the odoo instance.

If you are using the Pycharm IDE, try installing the package from it: How To Install Python Packages From Pycharm



Thanks

形象
丢弃
编写者 最佳答案

How do i Extract the table data from pdf invoice ?


形象
丢弃

what is your purpose, why to get from the report ? with orm you can access same data from the db

编写者

i want to upload pdf invoice in a binary field then extract table data in sale.order.line i try many library python but not available in odoo sh can u give solution