首页 > 解决方案 > 如何检查 pip 安装包的 git 哈希

问题描述

有什么方便的方法来检查 pip 安装包的 git-hash 吗?

例如,我通过指定其提交哈希从 github 安装一个包:

pip install git+https://github.com/user/some-repository@[git-commit-hash]#egg=package-name

在编写代码并做了一些实验之后,我忘记了我安装了哪个版本。
至少 pip show --verbose package-name不提供有关 git commit hash 的任何信息。

标签: pythonpippipenv

解决方案


推荐阅读