如何将python软件包更新为git commit版本?

时间:2020-09-10 03:44:57

标签: python pip

如何将xnat python软件包更新为该特定的提交版本?

https://gitlab.com/radiology/infrastructure/xnatpy/-/commit/f58f04a2eeae62cd8f0631d213c6ff5552c44a70

当我尝试pip install xnat时,它不包含此更新,我想知道如何包含它。

1 个答案:

答案 0 :(得分:1)

您应该运行

pip install git+https://gitlab.com/radiology/infrastructure/xnatpy.git@f58f04a2eeae62cd8f0631d213c6ff5552c44a70#egg=xnat

PyPI将在提交xnat时从存储库https://gitlab.com/radiology/infrastructure/xnatpy.git安装名为f58f04a2eeae62cd8f0631d213c6ff5552c44a70的软件包(egg)