如何配置让pyenv使用代理(Windows)

根据官方文档,只需要在系统的环境变量中设置http_proxy和https_proxy.

Question: How do I configure my company proxy in pyenv for windows?
Answer: Set the http_proxy or https_proxy environment variable with the hostname or IP address of the proxy server in URL format, for example: http://username:password@hostname:port/ or http://hostname:port/

变量的值的格式如下:http://username:password@hostname:port/ 或 http://hostname:port/

posted @ 2024-01-18 10:07  ComputerPlayerJs  阅读(96)  评论(0编辑  收藏  举报