Installing tensorflow with anaconda in windows

前端 未结 20 2254
春和景丽
春和景丽 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 02:58

    "Conda" installs some of the special packages that might have compiled in C or other languages. You can use "pip install tensorflow" and it will work.

    0 讨论(0)
  • 2020-12-08 02:59

    1) Update conda

    Run the anaconda prompt as administrator

    conda update -n base -c defaults conda
    

    2) Create an environment for python new version say, 3.6

    conda create --name py36 python=3.6
    

    3) Activate the new environment

    conda activate py36
    

    4) Upgrade pip

    pip install --upgrade pip
    

    5) Install tensorflow

    pip install https://testpypi.python.org/packages/db/d2/876b5eedda1f81d5b5734277a155fa0894d394a7f55efa9946a818ad1190/tensorflow-0.12.1-cp36-cp36m-win_amd64.whl
    

    If it doesn't work

    If you have problem with wheel at the environment location, or pywrap_tensorflow problem,

     pip install tensorflow --upgrade --force-reinstall
    
    0 讨论(0)
  • 2020-12-08 03:00

    This documentation link is helpful and worked for me. Installs all dependencies and produces a working Anaconda. Or this answer is also helpful if you want to use it with spyder

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

    activate tensorflow

    conda install -c conda-forge tensorflow worked for me.

    None of the other steps mentioned online helped, I found it here when trying to install an older version.

    Eventhough the steps mentioned in the link seems to be for MAC OS X/Linux it worked in windows 7

    You can install spyder along with this conda install spyder

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

    Open anaconda prompt

    make sure your pip version is updated

    and you have python 3.4 3.5 or 3.6

    Just run the command

    pip install --upgrade tensorflow
    

    you can take help from the documentation and video

    Goodluck

    0 讨论(0)
  • 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.

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