Tensorflow import error: No module named 'tensorflow'

后端 未结 9 1641
走了就别回头了
走了就别回头了 2020-12-24 14:47

I installed TensorFlow on my Windows Python 3.5 Anaconda environment The validation was successful (with a warning)

(tensorflow) C:\\>python
9条回答
  •  隐瞒了意图╮
    2020-12-24 15:21

    The reason Python 3.5 environment is unable to import Tensorflow is that Anaconda does not store the tensorflow package in the same environment.

    One solution is to create a new separate environment in Anaconda dedicated to TensorFlow with its own Spyder

    conda create -n newenvt anaconda python=3.5
    activate newenvt
    

    and then install tensorflow into newenvt

    I found this primer helpful

提交回复
热议问题