【时间】2018.09.23
【题目】在jupyter中使用Tensorflow
目录
概述
在使用anaconda创建tensorflow环境并安装好tensorflow后,如何在jupyter使用TensorFlow?
一、jupyter中使用TensorFlow
1、在激活TensorFlow之后安装ipython和jupyter
(tensorflow)D:>conda install ipython
(tensorflow)D:>conda install jupyter
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
若没有报错,则基本成功了
【注意】在使用TensorFlow之前要先激活TensorFlow环境才能使用
本文详细介绍了在Jupyter环境中配置和使用TensorFlow的步骤,包括安装ipython、jupyter、pythonkernelforTensroflow以及验证TensorFlow是否正确安装的方法。
1031

被折叠的 条评论
为什么被折叠?



