python - 使用 NTLM 身份验证的 Easy_install 或 pip

标签 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

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

最佳答案

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

关于python - 使用 NTLM 身份验证的 Easy_install 或 pip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4772649/

相关文章:

Python urllib2 HTTPS 和代理 NTLM 身份验证

Python 3.2 : How do you install easy_install

python - 端点 URL : https://sns. us-west-1.amazonaws.com 上的连接超时

.net - 在 Silverlight/.NET Web 应用程序上启用 SSO : NTLM?

python - 插入或替换语句不适用于 sqlite3 和 python

NTLM 身份验证 - 身份验证后,服务器是否颁发任何 token ?

python - 如何使用 python 脚本以编程方式安装 PIL

python - Python 如何跟踪使用 egg 安装的模块?

python - python-daemon 中的信号处理

python - Scrapy/BeautifulSoup 模拟 'clicking' 一个按钮以加载网站的一部分