使用NTLM身份验证Easy_install或pip

Wan*_*wei 5 python ntlm pip easy-install

在我的工作环境中,Internet访问由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
Run Code Online (Sandbox Code Playgroud)

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

syk*_*ora 4

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

  • 系统要求说它需要 Python 1.5.2 及更高版本,这让我觉得这是一个非常古老的包,但它确实可以与 python 2.6 一起使用!那里提到的cntlm(http://cntlm.sourceforge.net/)也有效。谢谢! (2认同)