Installing tensorflow with anaconda in windows

前端 未结 20 2371
春和景丽
春和景丽 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.

提交回复
热议问题