Skip to main content

Posts

Showing posts from September, 2013

Install packages from git repo using pip

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 -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