Comments (4)
from dango-translator.
应该不需要paddleocr才对,翻译器本体不依赖paddleocr,可以直接去掉它
…
------------------ 原始邮件 ------------------ 发件人: "PantsuDango/Dango-Translator" @.>; 发送时间: 2023年7月27日(星期四) 中午1:45 @.>; @.>; 主题: [PantsuDango/Dango-Translator] requirements.txt中的依赖存在模块冲突 (Issue #128) 描述 在requirements.txt中有两个依赖opencv_python和paddleocr。而paddleocr又依赖于opencv_contrib_python。这两个包存在模块冲突。安装opencv_python时在site-packages文件夹中(安装第三方软件包的默认文件夹)会安装cv2模块。随后再安装opencv_contrib_python包时(同样存在cv2模块),会将opencv_python包的cv2模块覆盖。值得注意的是这两个包中的cv2文件夹内有些模块文件并不相同。 此外再opencv-python的官方文档说,这两个包不能同时安装,必须只安装一个(原话:There are four different packages (see options 1, 2, 3 and 4 below) and you should SELECT ONLY ONE OF THEM. Do not install multiple different packages in the same environment. There is no plugin architecture: all the packages use the same namespace (cv2). If you installed multiple different packages in the same environment, uninstall them all with pip uninstall and reinstall only one package.)。 复现 pip install -r requirements.txt 修改 我不确定这种覆盖问题会对本项目造成什么样的影响,因为它可能会隐藏在深层的调用链中,至少是想要call opencv_python的cv2模块时,实际它已经被覆盖了,于是调用的是opencv_contrib_python的cv2模块。所以覆盖行为肯定会发生。虽然本项目只能处理直接依赖,而间接依赖发生的模块冲突也确实没有什么好的解决办法。并且这样的冲突也可能没有确切的影响。因为不一定调用了cv2模块中相互覆盖的那部分。所以也请确认后麻烦给我回复一个确认该覆盖行为的commits。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>
非常感谢你的回复。虽然我看那么多人用也没人提出相关issues说因为这种冲突造成了实际问题,但是多余的依赖还是尽量删除比较好,毕竟可能深层调用依赖确实会存在问题,只是没人触发。
from dango-translator.
from dango-translator.
fix requirements.txt
from dango-translator.
Related Issues (20)
- 希望支持转发API HOT 2
- 希望为日文加入仅注音功能 HOT 8
- 请求支持飞书OCR
- [Warning] Hijacked Remote Command Execute in Dango-Translator Ver4.5.5 HOT 1
- [Feature Request] 希望能覆盖Magpie HOT 3
- 在更改自定义api接口地址后, 无法正常翻译 HOT 13
- 请求支持监听读取粘贴板来源翻译
- 你的工具是否能够用来做OCR及版面还原 HOT 6
- 能否增加一个谷歌翻译 HOT 12
- 请问是否目前chatgpt翻译不支持Azure OpenAI的api? HOT 2
- 软件默认字体设置 和 只重新翻译并渲染文字 HOT 3
- 能否提供一个本地llama的接口 HOT 1
- 发送验证码邮件失败了 HOT 2
- 能否多一些原文语种 HOT 1
- 请求支持阿里云OCR或腾讯云OCR
- English interface HOT 1
- 错误:pip的依赖关系解析程序当前没有考虑所有已安装的程序包。这种行为是以下依赖冲突的根源。 HOT 5
- 是否考虑使gpt接口适用于text-generation-webui? HOT 3
- 百度OCR由于未知原因无法设定识别方向 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dango-translator.