【tensorflow入门】2、tensorflow环境下安装jupyter

使用命令行编程无论视觉效果还是代码录入的用户体验都不太好,

因此后期准备使用jupyter来编写代码。

然而,报错了。

【tensorflow入门】2、tensorflow环境下安装jupyter_第1张图片

使用import tensorflow as tf加载tensorflow报错。

因为此电脑上原本的jupyter并不在tensorflow环境下面载入的,因此不能加载tensorflow。

解决方案:在tensorflow环境下重新安装jupyter。

 

命令行代码:

activate tensorflow

conda install ipython

conda install jupyter

重新运行

jupyter notebook

 

 

【采坑】:ipython和jupyter依然无法安装。提示:

You will need to adjust your conda configuration to proceed.
Use conda config --show channels to view your configuration’s current state.
Further configuration help can be found at https://conda.io/docs/config.html 5.

此时:

1、【tensorflow入门】2、tensorflow环境下安装jupyter_第2张图片

查看当前环境下已有的channel。

2、

将已有的channel删掉。

3、依次输入,重装ipython和jupyter。

conda install ipython

conda install jupyter

4、重新运行jupyter,选择这一项便不再报错了。

【tensorflow入门】2、tensorflow环境下安装jupyter_第3张图片

tensorflow载入成功,后边便可以在jupyter编写关于深度学习的python代码了~~~【oh yearh~】

【tensorflow入门】2、tensorflow环境下安装jupyter_第4张图片

 

 

 

你可能感兴趣的:(学习笔记,tensorflow,jupyter)