سؤال

I know how to install a specific commit from git but how do I find what commit version I have? pip freeze | grep package doesn't list the commit version and I didn't see anything in the docs for this.

هل كانت مفيدة؟

المحلول

It looks like this might not be possible: "pip's ability to discern where the install came from is limited after the fact using pip freeze." See this link: https://github.com/pypa/pip/issues/609

Discussion on SO: Pip freeze does not show repository paths for requirements file

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top