Use pip install through private repostiory protected by .htaccess ?
See original GitHub issueHi,
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
- Bitbucket: https://bitbucket.org/ianb/pip/issue/188
- Originally Reported By: Stéphane Klein
- Originally Created At: 2010-11-15 13:46:58
Issue Analytics
- State:
- Created 13 years ago
- Comments:21 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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/
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