Getting the error "DLL load failed: The specified module could not be found." while trying to import tensorflow for Windows in Anaconda using PyCharm

Ismail Farooq

I'm using windows 10 x64 Anaconda 2018.12.0.0 Python 3.6

I can't figure out the problem. I've tried reinstalling numpy but still nothing.

Below is the complete error I'm getting in the PYcharm

Traceback (most recent call last): File "C:\ProgramData\Anaconda3\envs\tf-1_9-36\lib\site-packages\numpy\core__init__.py", line 16, in from . import multiarray File "C:\ProgramData\Anaconda3\envs\tf-1_9-36\lib\site-packages\numpy\core\multiarray.py", line 12, in from . import overrides File "C:\ProgramData\Anaconda3\envs\tf-1_9-36\lib\site-packages\numpy\core\overrides.py", line 6, in from numpy.core._multiarray_umath 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/ismae/PycharmProjects/Test1/first", line 1, in import tensorflow as tf File "C:\ProgramData\Anaconda3\envs\tf-1_9-36\lib\site-packages\tensorflow__init__.py", line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\ProgramData\Anaconda3\envs\tf-1_9-36\lib\site-packages\tensorflow\python__init__.py", line 47, in import numpy as np File "C:\ProgramData\Anaconda3\envs\tf-1_9-36\lib\site-packages\numpy__init__.py", line 142, in from . import core File "C:\ProgramData\Anaconda3\envs\tf-1_9-36\lib\site-packages\numpy\core__init__.py", line 47, in raise ImportError(msg) ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. Here is how to proceed: - If you're working with a numpy git repository, try git clean -xdf (removes all files not under version control) and rebuild numpy. - If you are simply trying to use the numpy version that you have installed: your installation is broken - please reinstall numpy. - If you have already reinstalled and that did not fix the problem, then: 1. Check that you are using the Python you expect (you're using C:\ProgramData\Anaconda3\envs\tf-1_9-36\python.exe), and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy versions you're trying to use. 2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log

 Note: this error has many possible causes, so please don't comment on
 an existing issue about this - open a new one instead.

Original error was: DLL load failed: The specified module could not be found.

Thanks!

Srijan Chaudhary

Refer to my answer here

You need to update your environment variable "PATH" adding \Library\bin

Note: Follow this step only if you have already installed numpy and still facing issue.

C:\Users\<username>\AppData\Roaming\Python\Python<version>\Library\bin
C:\Users\<username>\AppData\Local\Continuum\Anaconda<version>\Library\bin\

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Error when trying to import sklearn modules : ImportError: DLL load failed: The specified module could not be found

From Dev

Error importing numpy from Anaconda, using conda (DLL load failed: The specified module could not be found)

From Dev

Import Error: DLL load failed: The specified module could not be found when using cxfreeze

From Dev

Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found

From Dev

Pyinstaller: Import Error: DLL load failed: The specified module could not be found

From Dev

Trying to install TensorFlow- GPU...failed with ImportError: DLL load failed: The specified module could not be found

From Java

"import torch" giving error "from torch._C import *, DLL load failed: The specified module could not be found"

From Dev

import matplotlib._png as _png Import: Error: DLL load failed: The specified module could not be found

From Dev

ver.2 PyGreSQL ERROR: from _pg import * ImportError: DLL load failed: The specified module could not be found

From Dev

"DLL load failed: The specified module could not be found" error on using wordcloud in Jupyter notebook

From Dev

DLL load failed: The specified module could not be found while importing scipy

From Dev

DLL load failed: the specified module could not be found Windows 10 shell

From Dev

Getting "ImportError: DLL load failed: The specified module could not be found" when using cx_Freeze even with tcl86t.dll and tk86t.dll added in

From Dev

Unable to open ANACONDA or SPYDER: ImportError: DLL load failed: The specified module could not be found

From Dev

Can run script from pycharm, but not from Terminal. ImportError: DLL load failed: The specified module could not be found

From Dev

from scipy.linalg import _fblas: ImportError: DLL load failed: The specified module could not be found

From Dev

Tensorflow-alpha-gpu issue ImportError: DLL load failed: The specified module could not be found

From Dev

How can I bypass kivy module error: ImportError: DLL load failed: The specified module could not be found?

From Dev

"DLL load failed: The specified module could not be found" error in importing "kfold" from sklearn

From Dev

import win32service, win32api, win32con, winerror ImportError: DLL load failed: The specified module could not be found

From Dev

ImportError: DLL load failed: The specified module could not be found for numpy

From Dev

pyodbc ImportError: DLL load failed: The specified module could > not be found

From Dev

Python: ImportError: DLL load failed: The specified module could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Dev

NLTK ImportError: DLL load failed: The specified module could not be found

From Dev

Scipy ImportError: DLL load failed: The specified module could not be found

From Dev

PyQt5: The DLL load failed: the specified module could not be found

From Dev

Pyinstaller ImportError: DLL load failed: The specified module could not be found

Related Related

  1. 1

    Error when trying to import sklearn modules : ImportError: DLL load failed: The specified module could not be found

  2. 2

    Error importing numpy from Anaconda, using conda (DLL load failed: The specified module could not be found)

  3. 3

    Import Error: DLL load failed: The specified module could not be found when using cxfreeze

  4. 4

    Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found

  5. 5

    Pyinstaller: Import Error: DLL load failed: The specified module could not be found

  6. 6

    Trying to install TensorFlow- GPU...failed with ImportError: DLL load failed: The specified module could not be found

  7. 7

    "import torch" giving error "from torch._C import *, DLL load failed: The specified module could not be found"

  8. 8

    import matplotlib._png as _png Import: Error: DLL load failed: The specified module could not be found

  9. 9

    ver.2 PyGreSQL ERROR: from _pg import * ImportError: DLL load failed: The specified module could not be found

  10. 10

    "DLL load failed: The specified module could not be found" error on using wordcloud in Jupyter notebook

  11. 11

    DLL load failed: The specified module could not be found while importing scipy

  12. 12

    DLL load failed: the specified module could not be found Windows 10 shell

  13. 13

    Getting "ImportError: DLL load failed: The specified module could not be found" when using cx_Freeze even with tcl86t.dll and tk86t.dll added in

  14. 14

    Unable to open ANACONDA or SPYDER: ImportError: DLL load failed: The specified module could not be found

  15. 15

    Can run script from pycharm, but not from Terminal. ImportError: DLL load failed: The specified module could not be found

  16. 16

    from scipy.linalg import _fblas: ImportError: DLL load failed: The specified module could not be found

  17. 17

    Tensorflow-alpha-gpu issue ImportError: DLL load failed: The specified module could not be found

  18. 18

    How can I bypass kivy module error: ImportError: DLL load failed: The specified module could not be found?

  19. 19

    "DLL load failed: The specified module could not be found" error in importing "kfold" from sklearn

  20. 20

    import win32service, win32api, win32con, winerror ImportError: DLL load failed: The specified module could not be found

  21. 21

    ImportError: DLL load failed: The specified module could not be found for numpy

  22. 22

    pyodbc ImportError: DLL load failed: The specified module could > not be found

  23. 23

    Python: ImportError: DLL load failed: The specified module could not be found

  24. 24

    ImportError: DLL load failed: The specified module could not be found

  25. 25

    ImportError: DLL load failed: The specified module could not be found

  26. 26

    NLTK ImportError: DLL load failed: The specified module could not be found

  27. 27

    Scipy ImportError: DLL load failed: The specified module could not be found

  28. 28

    PyQt5: The DLL load failed: the specified module could not be found

  29. 29

    Pyinstaller ImportError: DLL load failed: The specified module could not be found

HotTag

Archive