Does python's pip support http authentication?

By : t3rse
Source: Stackoverflow.com
Question!

As the title says, does pip support http authentication, like easy_install does?

If not, are there any (better) alternatives to running a private package repository? I see pip can access source repositories (git,svn etc.), but can version requirements be used with this?

By : t3rse


Answers

For people still searching for an answer you can use the following syntax:

pip install -r https://user:[email protected]/path/requirements.txt

An also if you require to validate their certificate use:

pip install --cert host.pem -r https://user:[email protected]/path/requirements.txt

This is working on:

$ pip --version
pip 1.5.4 from /usr/local/lib/python2.7/dist-packages (python 2.7)

To upgrade your pip do:

pip install --upgrade pip
By : Havok


FYI, it's currently being worked on in the http_auth_index branch which will allow the use of basic auth for custom indexes.

By : jezdez


Currently simply pip does not support authentication.

But the main author of pip thinks that feature is desirable so probably it will appear in the medium future. There is also an item in the PIP trac containing a patch to enable http auth.

By : mdorseif


This video can help you solving your question :)
By: admin