开发者

Easy_install or pip with NTLM auth

开发者 https://www.devze.com 2023-02-06 19:09 出处:网络
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:

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 开发者_JAVA百科that satisfy the requirement django
No distributions at all found for django

Is it possible to get them working in such an environment?


Use NTLMAPS, and point pip to the local proxy.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号