[英]Python / pip, how do I install a specific version of a git repository from github (what is the correct url)?
我想通過pip安裝Django 1.7。 它目前是一個開發版本,因此不在pips存儲庫中。
所以我在使用之前已經從github安裝了包:
pip install git+[url here]
現在看github,我在django頁面上獲得了克隆url:
https://github.com/django/django.git
但是這沒有提及分支。 如何指定我想要1.7版本? 它是否在github頁面上顯而易見?
在url末尾的@
后面指定分支 , 提交哈希或標記名稱 :
pip install git+https://github.com/django/django.git@1.7b3
參考: https : //pip.pypa.io/en/latest/reference/pip_install.html#git
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.