Packages in git repo (or hg, svn, bzr) can be installed with "pip install -e" directly. Base on the help message of "pip install", we have
To use it, first make sure you have git installed. Such as "sudo apt-get install git-core" on ubuntu. And then you may follow the below examples(install redis-py):
Base on this post in stackoverflow, you may also specify a line in the requirment file(like reqs.txt):
And then, install it with "pip install -r reqs.txt".
-e VCS+REPOS_URL[@REV]#egg=PACKAGE, --editable=VCS+REPOS_URL[@REV]#egg=PACKAGE Install a package directly from a checkout. Source will be checked out into src/PACKAGE (lower-case) and installed in-place (using setup.py develop). You can run this on an existing directory/checkout (like pip install -e src/mycheckout). This option may be provided multiple times. Possible values for VCS are: svn, git, hg and bzr.
To use it, first make sure you have git installed. Such as "sudo apt-get install git-core" on ubuntu. And then you may follow the below examples(install redis-py):
# Install from master pip install -e git+https://github.com/andymccurdy/redis-py.git#egg=redis-py # Install a branch pip install -e git+https://github.com/andymccurdy/redis-py.git@pubsub#egg=redis-py # Install a tag pip install -e git+https://github.com/andymccurdy/redis-py.git@2.8.0#egg=redis-py # Install a commit pip install -e git+https://github.com/andymccurdy/redis-py.git@90ba027#egg=redis-py
Base on this post in stackoverflow, you may also specify a line in the requirment file(like reqs.txt):
-e git+https://github.com/andymccurdy/redis-py.git@90ba027#egg=redis-py
And then, install it with "pip install -r reqs.txt".
Comments