LoginSignup
3
8

More than 5 years have passed since last update.

今更ながらmacでTensorFlowを使ってみるための環境構築をしたので自分用メモ

Posted at

環境

  • Mac OS X El Capitan 10.11.3
  • エディタ Atom

Python

Python 3.6.0 + pyenv-virtualenv

Python3なTensorFlow環境構築 (Macとpyenv virtualenv) を参考に設定。以下変更点

tensorflow のインポートの前に pyenv環境に入る必要がある

$ pyenv activate

インポートするパッケージはeasy_installに任せた。
MACはGPUがあったが、CPUのみのパッケージがインポートされた。

$ pip install tensorflow

Atomでの実行

platformio-ide-terminal を利用

$ pyenv activate
$ python test.py 

で実行できた。

課題

linter-pylint でスタイルチェックしようとしたが import のところで怒られる。
色々やってだめだったので スタイルチェックを flake8でやっている。
Pythonも触り始めたばかりなのでまだよくわかっていない。
少しずつやっていく。

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