如何从github为python库安装补丁?

问题描述 投票:0回答:1

运行 python 代码后出现错误。 来自 github 的以下补丁应该可以修复该错误,因为它是基于库的。

如何将此补丁安装到我的计算机上?

https://github.com/igraph/python-igraph/commit/8864b46849b031a3013764d03e167222963c0f5d

python python-3.x github patch
1个回答
0
投票

我可以找到该文件。我希望有一个更简单的方法,通过复制存储库或其他东西。

您可以使用 CLI

gh
来获取提交(而不是我在 2018 年引用的
wget
,并应用其差异:

gh api -H "Accept: application/vnd.github.v3.patch" /repos/igraph/python-igraph/commits/8864b46849b031a3013764d03e167222963c0f5d > patch.patch
git apply patch.patch
© www.soinside.com 2019 - 2024. All rights reserved.