python #
# 先安装 pipx
brew update
brew install pipx
# 再安装 poetry
pipx install poetry
# 安装 pyenv
brew install pyenv
# 从镜像下载
cat << 'EOF' >> ~/.zshrc
function pyenvinstall {
wget -c https://registry.npmmirror.com/-/binary/python/$@/[email protected] -P ~/.pyenv/cache/
pyenv install $@
}
EOF
zsh
# 更新 pyenv 缓存
pyenv update
# 列出可选的版本
pyenv install -l
# 安装需要的 python 版本
pyenvinstall 3.13.1
叶王 © 2013-2024 版权所有。如果本文档对你有所帮助,可以请作者喝饮料。