LoginSignup
0
0

More than 3 years have passed since last update.

Pythonの環境構築@mac

Posted at

$ brew install pyenv-virtualenv

以下をprofileへ追加する(.zshenvなど)

if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init -)"
fi
if which pyenv-virtualenv-init > /dev/null; then
  eval "$(pyenv virtualenv-init -)";
fi

使い方の例

バージョン3.7.3のpythonのvirtualenvを$(pyenv root)/versionsに作成する:

$ pyenv virtualenv 3.7.3 my-virtual-env-3.7.3

virtualenvの一覧を表示する

$ pyenv virtualenvs
0
0
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
0