加速

从其他镜像站下载源码到 $PYENV_ROOT/.pyenv/cache 目录,然后执行安装

export v=3.11.3
curl -L https://npm.taobao.org/mirrors/python/$v/Python-$v.tar.xz -o ~/.pyenv/cache/Python-$v.tar.xz
pyenv install $v

pyenv-update

是一个pyenv的插件,用于更新插件和可安装版本列表

$ git clone https://github.com/pyenv/pyenv-update.git $(pyenv root)/plugins/pyenv-update
$ pyenv update