1
2

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.

python3.5環境構築メモ

Posted at

#なぜかpython3系環境を構築しようと思ったので、作ってみたメモ
環境はMac OSX Sierra

##pyenv を使う
Homebrewは入れてあったので、そのまま

$brew install pyenv

$echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> .bash_profile
$echo 'eval "$(pyenv init -)"' >> .bash_profile
なんで.bashrcに書いてるんだろう?
気にせず.bash_profileに書く

##python 3.5

$pyenv install 3.5.0

zlibがないよエラーで怒られた
zipimport.ZipImportError: can't decompress data; zlib not available

xcode-select --install をオススメされた

$xcode-select --install
しばし待つ。

$pyenv install 3.5.0
OK

##anaconda
python3.5系で使えるanacondaがよくわからない
どうも4.2あたりはいいらしいので、anaconda3-4.2.0をいれることに

$pyenv install anaconda3-4.2.0

ここでちょっとつまる
$python --version Python 3.5.0

import numpy
で、そんなライブラリないんですけど? と。

うーん。。
$pyenv global anaconda3-4.2.0

これで、
$python --version Python 3.5.2 :: Anaconda 4.2.0 (x86_64)

で解決

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?