tensorflow用のpython環境をjupyterLabで使う
- python2系/3系が入っているとする
- anaconda-navigatorも動いているとする
- TensorFlowで遊ぶためのenvironmentを作ることにする(参考)
conda create -n tensorflow pip python=2.7 # or python=3.3, etc. source activate tensorflow
- promptが
(tensorflow)$
- に変わる
- この環境にtensorflowをインストールする
(tensorflow)$ pip install tensorflow
- JupyterLabはipythonで動いているのでipythonに新しいカーネル環境を教える必要がある
python -m ipykernel install --user --name tensorflow --display-name "Python (tensorflow)"
- これで、jupyterlabを立ち上げれば、tensorflow用のアイコンが見えるようになる