How can I know which commit was used when installing a pip package from git?

前端 未结 4 1781
一整个雨季
一整个雨季 2020-12-19 03:44

If I install a package from git using https://pip.pypa.io/en/stable/reference/pip_install/#git does the specific commit that was checked out logged somewhere?

4条回答
  •  清酒与你
    2020-12-19 04:43

    It is not. If you just want to know — lookup the commit at the head of the installed branch. If you want to install a specific commit — name the commit. For example:

    pip install git+https://github.com/sqlobject/sqlobject.git@623a5802#egg=sqlobject
    

提交回复
热议问题