Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easy_install or pip with NTLM auth

In my working environment, internet access is managed by NTLM authentication and is associated with Windows user account, and easy_install or pip doesn't work:

C:\>easy_install django
install_dir D:\Python26\Lib\site-packages\
Searching for django
Reading http://pypi.python.org/simple/django/
Download error: timed out -- Some packages may not be found!
....

C:\>pip install django
Downloading/unpacking django
  Cannot fetch index base URL http://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement django
No distributions at all found for django

Is it possible to get them working in such an environment?

like image 478
Wang Dingwei Avatar asked Oct 14 '22 17:10

Wang Dingwei


1 Answers

Use NTLMAPS, and point pip to the local proxy.

like image 156
sykora Avatar answered Oct 30 '22 22:10

sykora