As described in the title, the following config, doesn't enable the proxy.
export http_proxy="socks5://127.0.0.1:1080"
export http_proxys="socks5://127.0.0.1:1080"
pyenv install 3.5.2
is there other methods?
here:
export HTTP_PROXY=http://127.0.0.1:58591; export HTTPS_PROXY=http://127.0.0.1:58591; export ALL_PROXY=socks5://127.0.0.1:51837
pyenv install -v 3.10.6
and
https_proxy=socks5://127.0.0.1:51837 pyenv install -v 3.10.6
not work
except use proxy, if you just want to speed up pyenv, another way is:
manually download python zip file, put into pyenv cache
steps:
pyenv install 3.7.3
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz
wget -e "https_proxy=https://127.0.0.1:58591" https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz
Python-3.7.3.tar.xz
into ~/.pyenv/cache
mkdir ~/.pyenv/cache
if not existed
no inline version of the answer from @Leon: