Py3.7.4 version of the code involved scikit learn, TensorFlow, keras, pandas, numpy, -- CPU environment
Other packages installation works, is TensorFlow STH over and over again, when installation, the back after the installation, run the code, and found an error: ImportError: DLL load failed with error code 3221225501, - net, searched for ways to reduce the tf version to 1.12.0. Can't solve,
Because is to set up the environment, the need for offline installation, tensorflow package name is:
Tensorflow 1.13.1 - cp37 - cp37m - win_amd64. WHL, the installation was successful, but to run the code error,
Back to:
Tensorflow 1.12.0 - cp37 - cp37m - win_amd64. WHL, installation is successful, is still the same problem, and seek advice, how to solve,,, it is best not to let me drop the python version,,,
Specific error content is as follows:
Traceback (the most recent call last) :
The File "D: \ python \ lib \ site - packages \ tensorflow \ python \ pywrap_tensorflow py", Lin
E, in 58 & lt; module>
The from tensorflow. Python. Pywrap_tensorflow_internal import *
File "D: \ python \ lib \ site - packages \ tensorflow \ python \ pywrap_tensorflow_internal
Py ", line 28, the in & lt; module>
_pywrap_tensorflow_internal=swig_import_helper ()
File "D: \ python \ lib \ site - packages \ tensorflow \ python \ pywrap_tensorflow_internal
Py ", line 24, in swig_import_helper
_mod=imp. Load_module (' _pywrap_tensorflow_internal, fp, the pathname, descript
Ion)
The File "D: \ python \ lib \ imp py", line 242, in the load_module
Return load_dynamic (name, filename, file)
The File "D: \ python \ 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 (the most recent call last) :
The File "C: \ Users \ python \ Desktop \ test py", line 7, in & lt; module>
The from keras. Models import Sequential
File "D: \ python \ lib \ site - packages \ keras__init__ py", line 3, the in & lt; module>
From the import utils
File "D: \ python \ lib \ site - packages \ keras \ utils__init__ py", line 6, the in & lt; The module
From the import conv_utils
The File "D: \ python \ lib \ site - packages \ keras \ utils \ conv_utils py", line 9, the in & lt; Modu
Le>
The from.. The import backend as K
File "D: \ python \ lib \ site - packages \ keras \ backend__init__ py", line 89, in & lt; The mod
Ule>
From the tensorflow_backend import *
The File "D: \ python \ lib \ site - packages \ keras \ backend \ tensorflow_backend py", line 5
And the in & lt; module>
The import tensorflow as tf
File "D: \ python \ lib \ site - packages \ tensorflow__init__ py", line 24, in & lt; The module
The from tensorflow. Python import pywrap_tensorflow # pylint: disable=unused - im
The port
File "D: \ python \ lib \ site - packages \ tensorflow \ python__init__ py", line 49, in
& lt; module>
The from tensorflow. Python import pywrap_tensorflow
The File "D: \ python \ lib \ site - packages \ tensorflow \ python \ pywrap_tensorflow py", Lin
E, 74, in & lt; module>
Raise ImportError (MSG)
ImportError: Traceback (the most recent call last) :
The File "D: \ python \ lib \ site - packages \ tensorflow \ python \ pywrap_tensorflow py", Lin
E, in 58 & lt; module>
The from tensorflow. Python. Pywrap_tensorflow_internal import *
File "D: \ python \ lib \ site - packages \ tensorflow \ python \ pywrap_tensorflow_internal
Py ", line 28, the in & lt; module>
_pywrap_tensorflow_internal=swig_import_helper ()
File "D: \ python \ lib \ site - packages \ tensorflow \ python \ pywrap_tensorflow_internal
Py ", line 24, in swig_import_helper
_mod=imp. Load_module (' _pywrap_tensorflow_internal, fp, the pathname, descript
Ion)
The File "D: \ python \ lib \ imp py", line 242, in the load_module
Return load_dynamic (name, filename, file)
The File "D: \ python \ 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 having and solutions. Include the - stack trace
Above this error message when have for help.
CodePudding user response:
The building Lord solved? I also met the same problem, Windows 7 environmentCodePudding user response:
Great god! Problem solved?CodePudding user response:
Windows 7 python 3.7.4 has also had the same problem, can you tell me some solved?CodePudding user response:
Who is there to solve, meet the same problemCodePudding user response:
It should be the CPU does not support tensorflow, tensorflow will use CPU AVX instructions