查找 python 目录
which python
/usr/local/bin/python
- 打开 ~/.zshrc
open ~/.zshrc
- 添加配置
export PATH="$HOME/.pyenv/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
- 更新~/.zshrc
source ~/.zshrc
查找 python 目录
which python
/Users/mac/.pyenv/shims/python
网友评论