1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

macOS High Sierraへのpyenv導入(2018年4月9日)

Last updated at Posted at 2018-04-09

経緯

MacOSXにはもともとpython2.7系が入っている。
柔軟にpython2系と3系、anaconda等の環境を行き来したい。
自分はこれの上にanacondaとか入れてます。

インストール

とりあえず今はbrewを使うのがもっとも簡便か。


$ brew update
$ brew install pyenv
$ which pyenv
/usr/local/bin/pyenv
$ pyenv root
/Users/(User_name)/.pyenv
$ export PATH=$(pyenv root)/shims:${PATH}

pyenvがどうやって複数のpythonのバージョンを管理しているか、またpathのexportの注意点なんかはpyenvのGitHubに詳しい。

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?