首先说明下,本人在公司使用windows域账户代理上网,用pip在线安装package 返回ProxyError,类似Tunnel connection failed: 407 authenticationrequired

解决方案

# UNIX
export http_proxy=<user>:<password>@<proxy_ip_address>:<port>
export set https_proxy=<user>:<password>@<proxy_ip_address>:<port>

# Windows
c:\> set http_proxy=<user>:<password>@<proxy_ip_address>:<port>
c:\> set https_proxy=<user>:<password>@<proxy_ip_address>:<port>

上面需要注意的是windows域账户需要使用类似set https_proxy=<hostname>\\<user>:<password>@<proxy_ip_address>:<port>hostname为域名

Ref
[http://blog.chinaunix.net/uid-608135-id-4340906.html]

相关文章:

  • 2021-08-04
  • 2021-06-26
  • 2021-07-31
  • 2021-11-08
  • 2021-12-27
  • 2022-12-23
  • 2021-05-30
猜你喜欢
  • 2021-04-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2022-01-17
  • 2021-05-19
相关资源
相似解决方案