LoginSignup
0
2

More than 5 years have passed since last update.

pyenvでpython環境を作る

Posted at
$ 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

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2