Installing tensorflow with anaconda in windows

前端 未结 20 2250
春和景丽
春和景丽 2020-12-08 02:15

I have installed Anaconda on Windows 64 bit. I have downloaded PyCharm for creating a project and in the terminal of PyCharm I have installed numpy, scipy

相关标签:
20条回答
  • 2020-12-08 03:21

    I use windows 10, Anaconda and python 2. A combination of mentioned solutions worked for me:

    Once you installed tensorflow using:

    C:\Users\Laleh>conda create -n tensorflow python=3.5 # use your python version

    C:\Users\Laleh>activate tensorflow

    (tensorflow) C:\Users\Laleh>conda install -c conda-forge tensorflow

    Then I realized tensorflow can not be imported in jupyter notebook, although it can work in commad windows. To solve this issue first I checked:

    jupyter kernelspec list

    I removeed the Jupyter kernelspec, useing:

    jupyter kernelspec remove python2

    Now, the jupyter kernelspec list is pointing to the correct kernel. Again, I activate tensorflow and installed notebook in its environment:

    C:\Users\Laleh>activate tensorflow

    (tensorflow)C:> conda install notebook

    Also if you want to use other libraries such as matplotlib, they should be installed separately in tensorflow environment

    (tensorflow)C:> conda install -c conda-forge matplotlib

    Now everything works fine for me.

    0 讨论(0)
  • 2020-12-08 03:22

    I was able to install tensorflow on windows following the instructions on tensorflow.org, using the conda method of installation, as given here: https://www.tensorflow.org/get_started/os_setup#anaconda_installation. There are small differences on how to activate an 'environment' on windows, you call 'activate' directly without the 'source'. So, for me after installing anaconda the steps where:

    C:\Users\Dunschm>conda create -n tensorflow python=3.5
    C:\Users\Dunschm>activate tensorflow
    (tensorflow) C:\Users\Dunschm>conda install -c conda-forge tensorflow
    
    0 讨论(0)
提交回复
热议问题