Tensorflow import error: No module named 'tensorflow'

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

    for python 3.8 version go for anaconda navigator then go for environments --> then go for base(root)----> not installed from drop box--->then search for tensorflow then install it then run the program.......hope it may helpful

    0 讨论(0)
  • 2020-12-24 15:40

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

    create a new separate environment in Anaconda dedicated to TensorFlow as follows:

    conda create -n newenvt anaconda python=python_version
    

    replace python_version by your python version

    activate the new environment as follows:

    activate newenvt
    

    Then install tensorflow into the new environment (newenvt) as follows:

    conda install tensorflow
    

    Now you can check it by issuing the following python code and it will work fine.

    import tensorflow
    
    0 讨论(0)
  • 2020-12-24 15:42

    I had same issues on Windows 64-bit processor but manage to solve them. Check if your Python is for 32- or 64-bit installation. If it is for 32-bit, then you should download the executable installer (for e.g. you can choose latest Python version - for me is 3.7.3) https://www.python.org/downloads/release/python-373/ -> Scroll to the bottom in Files section and select “Windows x86-64 executable installer”. Download and install it.

    The tensorflow installation steps check here : https://www.tensorflow.org/install/pip . I hope this helps somehow ...

    0 讨论(0)
提交回复
热议问题