I cannot install Tensorflow-GPU

Asked

Viewed 501 times

0

I started learning about tensorflow recently and decide to trade for the GPU version, for being much faster, but I can’t, always gives the same error.

Specs:

  • I5-8400
  • GTX 1060 6GB
  • Windows 10 Home 64x
  • 8GB RAM

.

Attempts:

  • I tried to install by Pip, python 3.6.8, Cuda 10 and the latest cudnn for Cuda 10
  • I tried to reinstall python with all components (CUDA and Cudnn)
  • I installed Visual Studio and reinstalled CUDA and cuDnn
  • I tried to install the latest Anaconda, created a "standard" env and another in python 3.6, Pip install tensorflow-gpu in both

All attempts gave in same error, error importing some DLL

Here is the mistake:
https://pastebin.com/KMEsZAmq

And here the complete code:
https://pastebin.com/7tS0Rd5S

2 answers

1

You are probably installing the most current version of Tensorflow (maybe it is a compatibility problem, etc.), one option is to install an older version:

Uninstall the current version, you do this by Pip:

pip uninstall tensorflow-gpu

In sequence:

pip install tensorflow-gpu==1.9 #Troque o numero para a versao desejada

Particularly I use the 1.9, but it is at your discretion and tests; Tests can also be done with other versions of python.

EDIT:

You may need to downgrade Cuda to version 9.0.

I hope it’s a solution to your problem.

0

Trying to decrease as much as possible any problem using Tensorflow I made a "sort of check list", come on then:

  1. Cuda library version 10 or 10.1.

  2. Tensorflow and/or Tensorflow-gpu in version 2.0 or 2.1 (avoid installing beta versions).

  3. Python 3.7 as main developer environment.

  4. Configuration of Project Paths.

If all these steps have been followed probably your error should disappear.

As this post is old probably the problem must have been solved, if someone else has the same problem, try to perform these steps, if you can’t, try to explain in more detail what you tried to perform for the error arise.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.