Linux ubuntu 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux

 

一开始只是试用了export http_proxy=http://ip:port,然后执行sudo -E pip install requests的时候总是报  Cannot fetch index base URL http://pypi.python.org/simple/的错误,各种无奈,最后突然想到可能是http重定向到https的问题。

再次export https_proxy=http://ip:port之后,问题解决。

相关文章:

  • 2021-10-15
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-01-17
  • 2021-12-06
  • 2021-06-04
猜你喜欢
  • 2021-06-21
  • 2021-12-22
  • 2022-02-28
  • 2021-07-30
  • 2022-01-20
相关资源
相似解决方案