Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The DLL error in importing tensorflow. #37221

Closed
beicodewarrior opened this issue Mar 2, 2020 · 6 comments
Closed

The DLL error in importing tensorflow. #37221

beicodewarrior opened this issue Mar 2, 2020 · 6 comments
Assignees
Labels
subtype:windows Windows Build/Installation Issues TF 2.0 Issues relating to TensorFlow 2.0 type:build/install Build and install issues

Comments

@beicodewarrior
Copy link

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • TensorFlow installed from (source or binary): tensorflow pypi
  • TensorFlow version: 2.0.0
  • Python version: 3.6.8 with updated pip==20.0.2
  • Installed using: pip in virtualenv
  • CUDA/cuDNN version: CUDA V10.0.130, cuDNN 7.4.1
  • GPU model and memory: GeForce GTX 1660

Describe the problem
I got this error when importing TensorFlow.
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

NVIDIA driver version is 432.00. I install CUDA 10 and configured cudnn 7.4.1. Also, installed Visual Studio 2017 buildtools. I tried to install from tf-1.12 to tf-2.0, all versions were failed. I checked previous issues about this error, but some guys resolved using conda. If so, couldn't I use pip installer with tensorflow?

@Saduf2019 Saduf2019 added subtype:windows Windows Build/Installation Issues type:build/install Build and install issues TF 2.0 Issues relating to TensorFlow 2.0 labels Mar 2, 2020
@gadagashwini-zz gadagashwini-zz added TF 2.0 Issues relating to TensorFlow 2.0 and removed TF 2.0 Issues relating to TensorFlow 2.0 labels Mar 2, 2020
@beicodewarrior
Copy link
Author

Hello,

Do you have any solution?

@Saduf2019
Copy link
Contributor

@Venus24kk
Just to verify did you follow the instructions to install from pip using Tensorflow website.Thanks

@beicodewarrior
Copy link
Author

Thank you for your message. I found my CPU doesn't support AVX instruction. When I install tensorflow-gpu, does it matter if CPU supports AVX instruction?

Regards,

@Saduf2019
Copy link
Contributor

@Venus24kk
Yes while you do pip install from windows,it does matter.

@mihaimaruseac
Copy link
Collaborator

@tensorflow-bot
Copy link

tensorflow-bot bot commented Mar 5, 2020

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subtype:windows Windows Build/Installation Issues TF 2.0 Issues relating to TensorFlow 2.0 type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

4 participants