使用NTLM身份验证Easy_install或pip

时间:2011-01-23 06:44:11

标签: python ntlm easy-install pip

在我的工作环境中,互联网访问由NTLM身份验证管理,并与Windows用户帐户相关联,而easy_install或pip不起作用:

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

是否有可能让他们在这样的环境中工作?

1 个答案:

答案 0 :(得分:4)

使用NTLMAPS,并将pip指向本地代理。