iT邦幫忙

0

Managing Multiple Python Versions With pyenv On Mac

  • 分享至 

  • xImage
  •  

ref: https://github.com/pyenv/pyenv

Install pyenv

  1. Consider installing with Homebrew:
brew update
brew install pyenv
  1. Set up your shell environment for Pyenv:
    For Zsh:
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
source ~/.zshrc

Usage

  1. Get the list of all available versions:
pyenv install -l
  1. Install additional Python versions:
pyenv install 3.10.10
  1. Switch Python versions:
pyenv global 3.10.10
  1. Let’s ask to pyenv which version we have available now:
pyenv versions

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言