Let us take the example of https://pypi.python.org/pypi/py-dom-xpath. In this case the package repository is hosted in http://code.google.com/p/py-dom-xpath/.
I am using Python 2.7 on Windows 7.
pip install py-dom-xpath
Downloading/unpacking py-dom-xpath
Could not find any downloads that satisfy the requirement py-dom-xpath
Some externally hosted files were ignored (use --allow-external py-dom-xpath to allow).
Cleaning up...
No distributions at all found for py-dom-xpath
Storing debug log for failure in C:\Users\insrkum\pip\pip.log
pip install --allow-external py-dom-xpath
You must give at least one requirement to install (see "pip help install")
pip install --allow-all-external py-dom-xpath
Downloading/unpacking py-dom-xpath
Could not find any downloads that satisfy the requirement py-dom-xpath
Some insecure and unverifiable files were ignored (use --allow-unverified py-dom-xpath to allow).
Cleaning up...
No distributions at all found for py-dom-xpath
Storing debug log for failure in C:\Users\insrkum\pip\pip.log
I attempted use --index-url option without any success. What works is the following command
pip install http://py-dom-xpath.googlecode.com/files/py-dom-xpath-0.1.tar.gz
This is not the best way to install externally hosted package repositories. I am interested to use --allow-external or --allow-all-external. I also want to learn how to use --upgrade option with externally hosted package repositories.