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

Problem running tensorflow in Pycharm - ImportError: DLL load failed: The specified module could not be found. #42440

Closed
PODEE opened this issue Aug 17, 2020 · 6 comments
Assignees
Labels
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype:windows Windows Build/Installation Issues TF 2.3 Issues related to TF 2.3 type:build/install Build and install issues

Comments

@PODEE
Copy link

PODEE commented Aug 17, 2020

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

  • OS Platform and Distribution (Windows 10, 4GB Ram, 64-bit OS, x64 basedprocessor, Microsoft Visual C++ 2015-19 Re....installed):
  • Mobile device (N/A):
  • TensorFlow installed from (pip install tensorflow Pycharm Terminal):
  • TensorFlow version: latest
  • Python version: 3.7.8
  • Installed using virtualenv? pip? conda?: pip
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version:
  • GPU model and memory:

Describe the problem
Installation seems to work fine (successfully installed absl.....). But when I run import tensorflow as tf

Provide the exact sequence of commands / steps that you executed before running into the problem
import tensorflow as tf

Any other info / logs
C:\Users\D'AVON\PycharmProjects\Test\venv\Scripts\python.exe C:/Users/D'AVON/PycharmProjects/Test/start.py
Traceback (most recent call last):
File "C:\Users\D'AVON\PycharmProjects\Test\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/Users/D'AVON/PycharmProjects/Test/start.py", line 1, in
import tensorflow as tf
File "C:\Users\D'AVON\PycharmProjects\Test\venv\lib\site-packages\tensorflow_init_.py", line 41, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\D'AVON\PycharmProjects\Test\venv\lib\site-packages\tensorflow\python_init
.py", line 40, in
from tensorflow.python.eager import context
File "C:\Users\D'AVON\PycharmProjects\Test\venv\lib\site-packages\tensorflow\python\eager\context.py", line 35, in
from tensorflow.python import pywrap_tfe
File "C:\Users\D'AVON\PycharmProjects\Test\venv\lib\site-packages\tensorflow\python\pywrap_tfe.py", line 28, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\D'AVON\PycharmProjects\Test\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\D'AVON\PycharmProjects\Test\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

Process finished with exit code 1

@PODEE PODEE added the type:build/install Build and install issues label Aug 17, 2020
@amahendrakar
Copy link
Contributor

@PODEE,
You might be facing this issue because of the following reasons

  • You are running 32-bit Python
  • Your CPU does not support AVX instructions. Please share the make and model of your CPU, so that we can verify this.

Please take a look at the system requirements and check if you have the correct dependencies installed.

Also, check these similar duplicate issues: #36167 #36151 #36138 #36054 #36045 #36020 #36003 #35988 #35903 #35880 #35865 #35805 #35789 #35773 #35772 #35767 #35766 #35749 #35721 #35618 #35204.

Thanks!

@amahendrakar amahendrakar added stat:awaiting response Status - Awaiting response from author subtype:windows Windows Build/Installation Issues TF 2.3 Issues related to TF 2.3 labels Aug 18, 2020
@PODEE
Copy link
Author

PODEE commented Aug 18, 2020

SystemModel
System Model attached.
I installed 64-bit Python and I've gone through most of the duplicate issues but still not working

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Aug 20, 2020
@amahendrakar
Copy link
Contributor

@PODEE,
The product specification for your CPU doesn't mention AVX support.

In this case, you can either build TensorFlow from source or use Google Colab as alternatives. Thanks!

@amahendrakar amahendrakar added the stat:awaiting response Status - Awaiting response from author label Aug 25, 2020
@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

@google-ml-butler google-ml-butler bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label Sep 1, 2020
@google-ml-butler
Copy link

Closing as stale. Please reopen if you'd like to work on this further.

@google-ml-butler
Copy link

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
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype:windows Windows Build/Installation Issues TF 2.3 Issues related to TF 2.3 type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

3 participants