没有名为tensor flow的模块 – iPython notebook
发布时间:2020-12-20 11:52:19 所属栏目:Python 来源:网络整理
导读:我知道这可能是一个老问题,但我仍然无法从现成的Q $A找到解决方案.这是问题所在: 我正在关注Udacity“机器学习”及其作业,需要使用iPythonNotebook tensorflow.细节:https://github.com/Omarito2412/udacity-deeplearning Assignment2需要张量流.顺便说一
我知道这可能是一个老问题,但我仍然无法从现成的Q $A找到解决方案.这是问题所在:
我正在关注Udacity“机器学习”及其作业,需要使用iPythonNotebook& tensorflow.细节:https://github.com/Omarito2412/udacity-deeplearning Assignment2需要张量流.顺便说一下,我已经安装了Anaconda, 代码非常简单,如下: import numpy as np import tensorflow as tf from six.moves import cPickle as pickle from six.moves import range 并且错误消息如下: ImportError Traceback (most recent call last) <ipython-input-1-0970743dd90d> in <module>() 2 # before proceeding further. 3 import numpy as np ----> 4 import tensorflow as tf 5 from six.moves import cPickle as pickle 6 from six.moves import range ImportError: No module named tensorflow 谢谢.有什么建议 ? PS:我在两台MacBook上遇到了这个问题,两台MacBook都运行了Pycharm张量流. 解决方法
我尝试Anaconda安装后(我使用的是其他安装方法,这些方法都显示在下面的链接中)
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#anaconda-installation 有效 … 此外,在终端激活张量流 >>> source activate tensorflow 在打开iPython Notebook之前 >>> ipython notebook 最后,我必须重启我的macbook才能使它工作…. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |