本文已被:浏览 459次 下载 891次
Received:November 05, 2024 Revised:November 28, 2024
Received:November 05, 2024 Revised:November 28, 2024
中文摘要: 第三方库是软件开发中关键的可复用资源, 它们显著减轻开发人员重复实现常见功能的负担, 从而进一步提高开发效率. 然而, 这些库的迭代更新可能导致在Python项目中使用过时的版本, 进而引发依赖冲突问题从而导致项目构建失败, 而开发人员往往对此风险缺乏足够认识. 为了解决这个问题, 本文对103个Python开源项目的第三方库更新及依赖冲突问题进行了全面的定量分析. 研究不仅关注了第三方库的版本更新频率, 还从项目角度深入探讨依赖冲突问题的具体表现形式. 基于实证研究, 本文提出了一种面向用户需求的Python库依赖冲突检测和解决方法, 旨在通过解决依赖冲突问题来简化开发人员的决策过程. 实验结果表明该方法在检测和解决依赖冲突方面具有显著优势和实用性.
Abstract:Third-party libraries are essential reusable resources in software development. They significantly reduce the burden of repeatedly implementing common functions, thus improving development efficiency. However, the iterative updates of these libraries can result in the use of outdated versions in Python projects, potentially causing dependency conflicts that lead to project build failures. Developers often lack sufficient awareness of this risk. To address this issue, a comprehensive quantitative analysis of 103 Python open-source projects regarding third-party library updates and dependency conflicts is conducted. This study focuses not only on the frequency of version updates but also examines the specific manifestations of dependency conflicts from a project perspective. Based on empirical research, a user demand-oriented method for detecting and resolving Python dependency conflicts is proposed, aimed at simplifying the decision-making process for developers by resolving dependency issues. Experimental results demonstrate that the proposed method offers significant advantages and practical utility in detecting and resolving dependency conflicts.
keywords: Python library dependency update dependency analysis third-party library dependency conflict
文章编号: 中图分类号: 文献标志码:
基金项目:
引用文本:
王文,牟令,杨德超,姜凯,贾欣宇,周宇.面向用户需求的Python库依赖冲突检测和解决方法.计算机系统应用,2025,34(6):168-179
WANG Wen,MOU Ling,YANG De-Chao,JIANG Kai,JIA Xin-Yu,ZHOU Yu.User-requirement-centric Approach for Detecting and Resolving Python Library Dependency Conflict.COMPUTER SYSTEMS APPLICATIONS,2025,34(6):168-179
王文,牟令,杨德超,姜凯,贾欣宇,周宇.面向用户需求的Python库依赖冲突检测和解决方法.计算机系统应用,2025,34(6):168-179
WANG Wen,MOU Ling,YANG De-Chao,JIANG Kai,JIA Xin-Yu,ZHOU Yu.User-requirement-centric Approach for Detecting and Resolving Python Library Dependency Conflict.COMPUTER SYSTEMS APPLICATIONS,2025,34(6):168-179

