cannot install tensorflow on anaconda

Viewed 2710

i am trying to install tensorflow on anaconda

i tried conda install -c conda-forge tensorflow

but the installation stuck on Solving environment:

looked for a solution so someone suggested to install with debug

   conda install --debug -c conda-forge tensorflow

but it stopped on

DEBUG conda.resolve:filter_group(277): tensorboard: pruned from 47 -> 0

enter image description here

how to fix this?

3 Answers

For python version 3.7, you need to first downgrade to 3.6 using conda install python=3.6. After that, the installation should work. I had a similar problem recently.

What it worked for me was: I uninstalled old versions of python and anaconda from my PC. I installed anaconda (Anaconda3-4.4.0-Windows-x86_64.sh) from here.

I confirmed the conda installation by: conda -V

It should give you: conda 4.3.21

I confirmed the python installation by: python -V

It should give you: Python 3.6.1 :: Anaconda 4.4.0 (64-bit)

Confirm the conda environment by typing on anaconda prompt:

conda update conda

conda update anaconda

Next, I Installed theano by: conda install theano

Next, I installed tensorflow by: conda install -c conda-forge tensorflow

Last, I installed keras by: pip install keras

This process takes some while.

The latest Tensorflow 1.12 supports python 3.4,3.5 or 3.6. python 3.7 is not supported. you can download Anaconda 5.2.0 After the Anaconda is installed, you can use conda install tensorflow or conda install tensorflow-gpu to quickly install tensorflow

Related