$ brew install pyenv
$ brew install pyenv-virtualenv
# edit ~/.bash_profile
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
$ pyenv install 3.7.0
$ pyenv virtualenv 3.7.0 <name>
# 仮想環境一覧
$ pyenv versions
# デフォルト仮想環境の指定
$ pyenv global <name>
# 現在ディレクトリに適応する仮想環境の指定
$ pyenv local <name>
# 現在ディレクトリに適応する仮想環境の確認
$ pyenv version
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
02