Giter VIP home page Giter VIP logo

Comments (4)

PantsuDango avatar PantsuDango commented on May 27, 2024 1

from dango-translator.

unsatisfying avatar unsatisfying commented on May 27, 2024

应该不需要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.

PantsuDango avatar PantsuDango commented on May 27, 2024

from dango-translator.

PantsuDango avatar PantsuDango commented on May 27, 2024

fix requirements.txt

from dango-translator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.