2011-01-23 153 views
5

在我的工作环境中,上网是通过NTLM身份验证管理,并与Windows用户帐户相关联,并使用easy_install或PIP不起作用:的easy_install或NTLM身份验证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 

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

+0

Duplicate http://stackoverflow.com/questions/9698557/how-to-use-pip-on-windows-behind-an-authenticating-proxy/ – rofrol 2015-07-06 14:23:49

回答

4

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

+2

系统要求说它需要Python 1.5.2及更高版本,这让我觉得这是一个非常古老的软件包,但它可以与Python 2.6一起工作!而在那里提到的cntlm(http://cntlm.sourceforge.net/)也适用。谢谢! – 2011-01-23 09:40:38