需要添加环境变量
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
立即生效:
exec "$SHELL"
pyenv 文档
- https://github.com/pyenv/pyenv
- https://blog.csdn.net/weixin_42289080/article/details/127997003
← 红包 Rollup打包从0到1 →