jupyter中import tensorflow报错

终端source activate tensorflow-gpu激活tensorflow环境后,打开jupyter notebook,依旧报错:
在这里插入图片描述
可能的原因:因为在tensorflow-gpu环境中没有安装jupyter和ipython,检查方法:

which ipython
which jupyter
which python

确保三个的路径都在你的tensorflow-gpu环境中,如果 jupyter 和 ipython 不在,就要重新安装这两个东西。

安完之后,退出环境,再重新进入,就可以import tensorflow了。

参考教程 https://www.jianshu.com/p/a8d4df740218

猜你喜欢

转载自blog.csdn.net/aaon22357/article/details/85099810