Installing tensorflow with anaconda in windows

前端 未结 20 2384
春和景丽
春和景丽 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:07

    This is what I did for Installing Anaconda Python 3.6 version and Tensorflow on Window 10 64bit.And It was success!

    1. Go to https://www.continuum.io/downloads to download Anaconda Python 3.6 version for Window 64bit.

    2. Create a conda environment named tensorflow by invoking the following command:

      C:> conda create -n tensorflow

    3. Activate the conda environment by issuing the following command:

      C:> activate tensorflow (tensorflow)C:> # Your prompt should change

    4. Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/enter code here download “tensorflow-1.0.1-cp36-cp36m-win_amd64.whl”. (For my case, the file will be located in “C:\Users\Joshua\Downloads” once after downloaded)

    5. Install the Tensorflow by using the following command:

      (tensorflow)C:>pip install C:\Users\Joshua\Downloads\ tensorflow-1.0.1-cp36-cp36m-win_amd64.whl

    This is what I got after the installing:

    1. Validate installation by entering following command in your Python environment:

      import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') sess = tf.Session() print(sess.run(hello))

    If the output you got is 'Hello, TensorFlow!',that means you have successfully install your Tensorflow.

提交回复
热议问题