Tensorflow import error: No module named 'tensorflow'

后端 未结 9 1727
走了就别回头了
走了就别回头了 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:30

    In Windows 64, if you did this sequence correctly:

    Anaconda prompt:

    conda create -n tensorflow python=3.5
    activate tensorflow
    pip install --ignore-installed --upgrade tensorflow
    

    Be sure you still are in tensorflow environment. The best way to make Spyder recognize your tensorflow environment is to do this:

    conda install spyder
    

    This will install a new instance of Spyder inside Tensorflow environment. Then you must install scipy, matplotlib, pandas, sklearn and other libraries. Also works for OpenCV.

    Always prefer to install these libraries with "conda install" instead of "pip".

提交回复
热议问题