*

Virtualenv で jupyter で tensorflow

作成:2018-07-06 更新:2018-07-06

Virtualenv 環境での jupyter で tensorflow

Ubuntu18.04 でKeras on tensorflow を jupyterで実行するための調査確認結果

Virtualenv python3.65 環境下 で [ 参照 ] ( https://www.tensorflow.org/install/install_linux )

記載のとおり

pip3 install –upgrade tensorflow

でtensorflowをインストールすると ver 1.8.0 となるが、確認のため

import tensorflow as tf

すると Illegal instruction (core dumped) とエラーが発生する。

pip install tensorflow==1.5 [ 参照 ] ( https://github.com/tensorflow/tensorflow/issues/17411 )

で解決。

pip install keras

後、jupyterでkerasを利用するには。

python -m ipykernel install –user –name=tensorflow

[ 参照 ] ( http://rndness.com/blog/2018/2/4/tensorflow-with-jupyter-notebooks-using-virtualenv )

これでjupyterをtensorflow modeに切り替えれば、keras 利用のプログラムが実行可能となった。

カテゴリー

Tags

▲TOPへ戻る