运行 python 代码后出现错误。 来自 github 的以下补丁应该可以修复该错误,因为它是基于库的。
如何将此补丁安装到我的计算机上?
https://github.com/igraph/python-igraph/commit/8864b46849b031a3013764d03e167222963c0f5d
我可以找到该文件。我希望有一个更简单的方法,通过复制存储库或其他东西。
您可以使用 CLI
gh
wget
gh api -H "Accept: application/vnd.github.v3.patch" /repos/igraph/python-igraph/commits/8864b46849b031a3013764d03e167222963c0f5d > patch.patch git apply patch.patch