2011-01-23 149 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