2016-11-04 261 views
1

所以我設法所有其他包(如CV2,熊貓,matplotlib ..)在默認內核或Python 3內核除了Tensorflow 工作做好Tensorflow在Jupyter筆記本導入錯誤

  • Tensorflow不會導入內核:「Python 3」或「Python默認」。

進口tensorflow爲TF

--------------------------------------------------------------------------- 
ImportError        Traceback (most recent call last) 
<ipython-input-2-41389fad42b5> in <module>() 
----> 1 import tensorflow as tf 

ImportError: No module named tensorflow 

當我選擇 「ENV:tensorflow」 的內核,我的其他軟件包,如大熊貓,CV2全部崩潰。因此,我嘗試使用「默認」內核或「Python 3」內核。

非常感謝。

+0

你能從'python3'交互式會話中導入tensorflow嗎?您可能只需要'pip3 install' [TensorFlow python3軟件包](https://www.tensorflow.org/versions/r0.11/get_started/os_setup.html#pip-installation)。 –

回答

0

您還沒有加載tensorflow內核,請按照說明here

+0

謝謝。問題是,當我選擇「env:tensorflow」內核時,我的其他軟件包如pandas,cv2都崩潰了(我可以一個接一個地解決這些問題,但太痛苦了,我寧願解決一個問題,Tensorflow在我的內核「Python 3」) - 請指出我是否誤解了你的觀點和鏈接。 –