PIP安装最小影响力的历史软件包版本

发布于 2025-01-21 04:16:18 字数 347 浏览 1 评论 0原文

TLDR:我希望能够pip install包装的哪个版本都需要对我当前安装的版本的最小更改。

长版本:

我支持一个非常复杂的基础容器,用于地球科学研究。 我的用户有时会为环境提供针对其特定用例的新软件包。新软件包的PIP安装通常会导致一系列升级,这不可避免地会破坏某些内容。 pip install-no-deps没有帮助 - 它只是意味着新软件​​包无法正常工作,因为它缺少依赖关系。

我似乎总是最终要做的是手动漫步新软件包的版本历史记录,寻找将对我现有包装造成最小干扰的版本。

有什么方法可以自动找到新软件包的“最小扰动”历史版本?

TLDR: I want the ability to pip install whichever version of a package will require the minimal changes to my currently installed versions.

Long version:

I support a pretty complex base container for geoscience research.
My users sometimes fork the environment to add a new package for their specific use-case. The pip install of the new package often causes a cascade of upgrades, which inevitably breaks something. pip install --no-deps is no help -- it just means the new package won't work, because it's missing dependencies.

What I always seem to end up doing is manually walking the version history of the new package, looking for a version that will cause minimum disturbance to my existing packages.

Is there any way of automatically finding this "minimal-disturbance" historical version of the new package?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文