less than 1 minute read

라이브러리를 fork해서 작업을 하다보면 commit이나 branch 기준으로 pip install 하고 싶을 때가 있습니다.

오늘은 commit, branch, tag 기준으로 pip install 하는 방법을 알아보겠습니다.

pip install을 제외한 뒷부분을 requirements.txt에 적어도 동일하게 설치할 수 있습니다.

Commit 기준

$ pip install git+git://github.com/openspeech-team/openspeech.git@10307587f08615224df5a868fb5249c68c70b12d 

Branch-name 기준

# git
$ pip install git+git://github.com/openspeech-team/openspeech.git@BRANCH_NAME

# from source bundle
$ pip install https://github.com/openspeech-team/openspeech/archive/BRANCH_NAME.tar.gz

Tag 기준

# git
$ pip install git+git://github.com/openspeech-team/openspeech.git@v0.2.0

# from source bundle
$ pip install https://github.com/openspeech-team/openspeech/archive/v0.2.0.tar.gz

Tags:

Categories:

Updated:

Leave a comment