質問編集履歴
1
回答していただいたものを試した結果を追記しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Kerasを使ったPythonプログラムを実行するとエラーコード3221225501がでる
|
1
|
+
TensorFlow.Kerasを使ったPythonプログラムを実行するとエラーコード3221225501がでる
|
test
CHANGED
@@ -359,3 +359,103 @@
|
|
359
359
|
wrapt 1.12.1
|
360
360
|
|
361
361
|
```
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
---
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
###追加で試したこと
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
・以下のコード(HelloQ様が回答して下さったもの)
|
374
|
+
|
375
|
+
```Python
|
376
|
+
|
377
|
+
from tensorflow.keras.models import Sequential
|
378
|
+
|
379
|
+
from tensorflow.keras.layers import Activation, Dense
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
model = Sequential()
|
386
|
+
|
387
|
+
model.add(Dense(3, input_dim=2))
|
388
|
+
|
389
|
+
model.add(Activation('sigmoid'))
|
390
|
+
|
391
|
+
model.add(Dense(1))
|
392
|
+
|
393
|
+
model.add(Activation('sigmoid'))
|
394
|
+
|
395
|
+
model.summary()
|
396
|
+
|
397
|
+
```
|
398
|
+
|
399
|
+
を実行したところ、kerasに関するエラーは改善しましたが、
|
400
|
+
|
401
|
+
```ここに言語を入力
|
402
|
+
|
403
|
+
Traceback (most recent call last):
|
404
|
+
|
405
|
+
File "C:\Users\○○\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
|
406
|
+
|
407
|
+
from tensorflow.python._pywrap_tensorflow_internal import *
|
408
|
+
|
409
|
+
ImportError: DLL load failed with error code 3221225501 while importing _pywrap_tensorflow_internal
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
During handling of the above exception, another exception occurred:
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
Traceback (most recent call last):
|
418
|
+
|
419
|
+
File "e:/○○/○○/AI/AI.py", line 1, in <module>
|
420
|
+
|
421
|
+
from tensorflow.keras.models import Sequential
|
422
|
+
|
423
|
+
File "C:\Users\○○\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
|
424
|
+
|
425
|
+
from tensorflow.python.tools import module_util as _module_util
|
426
|
+
|
427
|
+
File "C:\Users\○○\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\__init__.py", line 39, in <module>
|
428
|
+
|
429
|
+
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
|
430
|
+
|
431
|
+
File "C:\Users\○○\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in <module>
|
432
|
+
|
433
|
+
raise ImportError(msg)
|
434
|
+
|
435
|
+
ImportError: Traceback (most recent call last):
|
436
|
+
|
437
|
+
File "C:\Users\○○\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
|
438
|
+
|
439
|
+
from tensorflow.python._pywrap_tensorflow_internal import *
|
440
|
+
|
441
|
+
ImportError: DLL load failed with error code 3221225501 while importing _pywrap_tensorflow_internal
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
Failed to load the native TensorFlow runtime.
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
See https://www.tensorflow.org/install/errors
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
for some common reasons and solutions. Include the entire stack trace
|
456
|
+
|
457
|
+
above this error message when asking for help.
|
458
|
+
|
459
|
+
```
|
460
|
+
|
461
|
+
という似たような別のエラーが出ました。(エラーコードは同じ。)
|