使用 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
是否可以让它们在这样的环境中工作?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 NTLMAPS,并将 pip 指向本地代理。
Use NTLMAPS, and point pip to the local proxy.