加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

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

发布时间:2020-12-16 22:18:20 所属栏目:Python 来源:网络整理
导读:在我的工作环境中,Internet访问由NTLM身份验证管理,并与Windows用户帐户关联,easy_install或pip不起作用: C:easy_install djangoinstall_dir D:Python26Libsite-packagesSearching for djangoReading http://pypi.python.org/simple/django/Download e

在我的工作环境中,Internet访问由NTLM身份验证管理,并与Windows用户帐户关联,easy_install或pip不起作用:

C:&;easy_install django
install_dir D:Python26Libsite-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指向本地代理.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读