1.先检查tensorflow是否安装完成
pip3 show tensorflow
如果成功安装,应该会获得
Name: tensorflow
Version: 1.2.1
Summary: TensorFlow helps the tensors flow
Home-page: http://tensorflow.org/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: /usr/local/lib/python3.5/dist-packages
Requires: bleach, markdown, html5lib, backports.weakref, werkzeug, numpy, protobuf, wheel, six
2. 把安装路径添加到exportpath
export PYTHONPATH=/your/tensorflow/path:$PYTHONPATH.
3. 此时再运行spyder3可能会出现找不到一些kernal的问题,再用pip3 install命令逐一安装即可。