asmgx
asmgx

Reputation: 8054

cannot install tensorflow on anaconda

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?

Upvotes: 3

Views: 3339

Answers (4)

Hari Kc
Hari Kc

Reputation: 11

I got this problem many times and finally got the solution as follows for the latest anaconda

  1. downgrade the python to conda install python=3.10
  2. install tensorflow as conda install -c conda-forge tensorflow

Upvotes: 1

Efrain
Efrain

Reputation: 29

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.

Upvotes: 1

Chekelee
Chekelee

Reputation: 51

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

Upvotes: 1

kushy
kushy

Reputation: 362

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.

Upvotes: 5

Related Questions