question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use pip install through private repostiory protected by .htaccess ?

See original GitHub issue

Hi,

I would like protected a private Python Index repository with “.htaccess” file.

When I use pip to install some package from this repository, I’ve this error :

Getting page http://pypi.is-webdesign.com/simple/
Could not fetch URL http://pypi.is-webdesign.com/simple/: HTTP Error 401: Unauthorized

How can I use login/password parameters with pip ?

Pip don’t support this feature ? If not it’s planned ?

Regards, Stephane


Issue Analytics

  • State:closed
  • Created 13 years ago
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
vbabiycommented, Mar 15, 2011

pip supports basic auth via its URLOpener, http://bitbucket.org/ianb/pip/src/tip/pip/download.py#cl-67

Just use a URL like http://username:password@server/whatever/


Original Comment By: Jannis Leidel
3reactions
oltcommented, Jan 21, 2019

Parsing the username/password from the URL only works when the port is specified. (At least on Debian 9, Python 2.7.13, pip 18.1, but I had this issue on other systems as well)

This queries for username/password:pip install -f https://user:pass@example.com/pkgs requests This works:pip install -f https://user:pass@example.com:443/pkgs requests

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to use pip to install a package from a private ...
Run : pip install git+https://<PERSONAL ACCESS TOKEN>@github.com/<USERNAME>/<REPOSITORY>. git.
Read more >
Installing Private Python Packages - Read the Docs
Read the Docs uses pip to install your Python packages. If you have private dependencies, you can install them from a private Git...
Read more >
pypiserver · PyPI
A minimal PyPI server for use with pip/easy_install. ... pip install pypiserver # Or: pypiserver[passlib,cache] mkdir ~/packages # Copy packages into this ...
Read more >
PIP: Install From Private PyPi Repository - ShellHacks
How to install packages using `pip` from the private PyPi repositories. Authentication using username & password.
Read more >
How to Install PIP on CentOS 7 - Hivelocity Hosting
PIP is a package management system used to install and manage software packages written in Python. PIP can be installed either by using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found