900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > jupyter notebook import tensorflow as tf 报错解决

jupyter notebook import tensorflow as tf 报错解决

时间:2023-11-28 21:45:40

相关推荐

jupyter notebook import tensorflow as tf 报错解决

在anaconda5.2.0下 安装tensorflow完毕,在cmd下测试成功,但是在jupyter notebook中测试报错:大意是找不到指定的模块

python版本为3.6.5

解决方法:

1、安装ipython,安装jupyter

需要切入之前安装tensorflow时创建的tensorflow运行环境

打开anaconda prompt,进行安装ipython

(tensorflow)C:\Windows\system32>conda install ipython

···

进行安装jupyter

(tensorflow)C:\Windows\system32>conda install jupyter

...

2、执行这句关键代码:ipython kernelspec install-self --user

(tensorflow)C:\Windows\system32>ipython kernelspec install-self --user

3、重新打开jupyter notebook ,再测试import tensorflow as tf成功了。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。