tensorflow: dll load failed with errorcode 3221225501
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 (e.g., Linux Ubuntu 16.04): Windows 7
- TensorFlow installed from (source or binary): pip install tensorflow
- TensorFlow version: 2.0
- Python version: 3.7.4
- Installed using virtualenv? pip? conda?: installed using pip also tried wheel
- GCC/Compiler version (if compiling from source):
- CUDA/cuDNN version:
- GPU model and memory: No Gpu, only cpu,
Describe the problem
When i import tensorflow it raise error
dll load failed with errorcode 3221225501
I tried several methods like
- Installing whl from Tensorflow wheel
- Installed visual c++ 2015 redistributable
But all failed,
Provide the exact sequence of commands / steps that you executed before running into the problem
import tensorflow
Any other info / logs
import tensorflow Traceback (most recent call last): File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core\python\pywrap _tensorflow.py”, line 58, in <module> from tensorflow.python.pywrap_tensorflow_internal import * File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core\python\pywrap _tensorflow_internal.py”, line 28, in <module> _pywrap_tensorflow_internal = swig_import_helper() File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core\python\pywrap _tensorflow_internal.py”, line 24, in swig_import_helper _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, descript ion) File “C:\Users\SAMAN\Anaconda3\lib\imp.py”, line 242, in load_module return load_dynamic(name, filename, file) File “C:\Users\SAMAN\Anaconda3\lib\imp.py”, line 342, in load_dynamic return _load(spec) ImportError: DLL load failed with error code 3221225501
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_init_.py”, line 98, in <module> from tensorflow_core import * File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core_init_.py”, line 42, in <module> from . api.v2 import audio File "C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core_api\v2\audio _init.py", line 10, in <module> from tensorflow.python.ops.gen_audio_ops import decode_wav File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core\python\ops\ge n_audio_ops.py”, line 9, in <module> from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow File "C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_init.py", line 50, in getattr module = self.load() File "C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_init.py", line 44, in _load module = importlib.import_module(self.name) File "C:\Users\SAMAN\Anaconda3\lib\importlib_init.py", line 127, in import _module return _bootstrap._gcd_import(name[level:], package, level) File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core\python__init __.py”, line 49, in <module> from tensorflow.python import pywrap_tensorflow File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core\python\pywrap _tensorflow.py”, line 74, in <module> raise ImportError(msg) ImportError: Traceback (most recent call last): File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core\python\pywrap _tensorflow.py”, line 58, in <module> from tensorflow.python.pywrap_tensorflow_internal import * File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core\python\pywrap _tensorflow_internal.py”, line 28, in <module> _pywrap_tensorflow_internal = swig_import_helper() File “C:\Users\SAMAN\Anaconda3\lib\site-packages\tensorflow_core\python\pywrap _tensorflow_internal.py”, line 24, in swig_import_helper _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, descript ion) File “C:\Users\SAMAN\Anaconda3\lib\imp.py”, line 242, in load_module return load_dynamic(name, filename, file) File “C:\Users\SAMAN\Anaconda3\lib\imp.py”, line 342, in load_dynamic return _load(spec) ImportError: DLL load failed with error code 3221225501
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.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (4 by maintainers)
https://github.com/fo40225/tensorflow-windows-wheel/blob/master/1.14.0/py37/CPU/sse2/tensorflow-1.14.0-cp37-cp37m-win_amd64.whl
On Wed, Jun 24, 2020 at 8:55 PM Yash Kadam textyash20@gmail.com wrote:
@razzOn2calculus
Can you please refer the link1 and link2 .Thanks!