【题目】在jupyter中使用Tensorflow

【时间】2018.09.23

【题目】在jupyter中使用Tensorflow

目录

概述

一、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 

【题目】在jupyter中使用Tensorflow_第1张图片

 

3、打开Jupyter notebook 试试 import tensorflow as tf

若没有报错,则基本成功了

 

【注意】在使用TensorFlow之前要先激活TensorFlow环境才能使用

你可能感兴趣的:(jupyter)