LoginSignup
0
3

More than 5 years have passed since last update.

Python3系インストール覚書

Last updated at Posted at 2018-10-29

前提

login shell はbash
homebrew インストール済

手順

brew update
brew upgrade
brew doctor # で確認

# pyenv 入れる
brew install pyenv
# パス通します。
echo 'export PYENV_ROOT=/usr/local/var/pyenv' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"'                 >> ~/.bash_profile
source ~/.bash_profile

pyenv install --list # で入れられるバージョン確認
pyenv install 3.5.4
python --version # -> まだ2.7 
pyenv global 3.5.4
python --version # -> 3.5になってる

# anaconda入れる
pyenv install anaconda3-4.0.0 # pyenv install --list で確認してから
pyenv global anaconda3-4.0.0

python --version # で確認

jupyternotebookもこれで使える。
pandasとかもね

pyenv versions
pyenv global system

で切り替えができる。
あえてpython2系使うとかだと切り替えて使っている。

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