Tensorflow GPU installation breaks anaconda in windows 7 pc

0 views
Skip to first unread message

Venkateshwar reddy Jambula

unread,
Nov 8, 2017, 9:27:59 PM11/8/17
to conda - Public
I have tried to follow the steps mentioned in tensorflow document and after installing tesorflow gpu conda environemnt corupts.
https://www.tensorflow.org/install/install_windows
pip install --ignore-installed --upgrade tensorflow-gpu
I am not able to use conda command or anaconda  navigator anymore.

 

conda_error.jpg

Ian Stokes Rees

unread,
Nov 9, 2017, 9:06:53 AM11/9/17
to Venkateshwar reddy Jambula, conda - Public
Hi Venkatesh,

It is probably best to do this kind of pip install in a separate conda environment.  Doing so will reduce the chances of you breaking your root/base environment, which is what it looks like has happened here.  Now if `conda` is broken that a big problem.  I can't think of how a pip-install command could break conda.  A preferred sequence if you start from scratch (delete everything, including Anaconda) would be to do:

conda update conda
conda create -n tfgpu anaconda=5 python=3.6
source activate tfgpu

pip install --ignore-installed --upgrade tensorflow-gpu

That will keep all your Tensorflow pieces together and, more importantly, AWAY from your base conda/Anaconda installation.

If you want to recover your current situation you should look at environment variables and see what commands like `which python` and `which conda` return.

If you would like more input from this mailing list it always helps to include the output of commands that have failed plus some light debugging info (environments, software versions: `conda info -a`, if it works, provides pretty good information).

Cheers,

Ian

Nikhil Podila

unread,
Dec 19, 2017, 1:54:48 AM12/19/17
to conda - Public
Hi Venkatesh,

Seems to be an issue with pip.
As suggested here, the only solution is to re-install Anaconda from scratch, and install tensorflow-gpu using the following command instead:
pip install tensorflow-gpu 

Refer to this for issue updates:

Robert Grutza

unread,
Dec 24, 2017, 10:50:19 PM12/24/17
to conda - Public
Yes, that solves the issue.  Thank you.  Google should fix their instructions.
Reply all
Reply to author
Forward
0 new messages