在使用anaconda创建tensorflow环境并安装好tensorflow后,如何在jupyter使用TensorFlow?
一、jupyter中使用TensorFlow
1、在激活TensorFlow之后安装ipython和jupyter
(tensorflow)D:>conda install ipython
(tensorflow)D:>conda install jupyter
以下没有做也可以执行jupyter可以打开不同环境的python(版本不一样)
2、安装python kernel for Tensroflow:
(tensorflow)D:>ipython kernelspec install-self --user
看到类似如下结果 Installed kernelspec python3 in C:\Users\XXX\Jupyter\kernels\python3
3、打开Jupyter notebook 试试 import tensorflow as tf
若没有报错,则基本成功了