Внутренняя ошибка TensorFlow - PullRequest
       10

Внутренняя ошибка TensorFlow

0 голосов
/ 30 апреля 2020

Уважаемые, я не могу начать работу с TensorFlow. Даже если я проигнорирую эту ошибку, другая команда не будет работать. Я обрезал всю ошибку, только начало и некоторые предложения сохранились. Надеюсь, опытные новички поймете проблему. Пожалуйста, помогите всем.

import keras 
import matplotlib.pyplot as plot
import pandas as pd
import numpy as np

**Using TensorFlow backend.
ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.
ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.**

Traceback (most recent call last):
  File "C:\Users\Universe\Anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Universe\Anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Universe\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, description)
  File "C:\Users\Universe\Anaconda3\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\Universe\Anaconda3\lib\imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

................................................................................
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.

During handling of the above exception, another exception occurred:


AttributeError: 'ImportError' object has no attribute '_render_traceback_'


TypeError: must be str, not list

Ответы [ 2 ]

0 голосов
/ 02 мая 2020

Я решил это, скачав и установив Visual Studio 2017-2019 x86 и x64 отсюда:

Другое решение - понизить тензор потока до 2.0:

pip install tensorflow==2.0

У меня Python 3.7 .6, CUDA 10.1 и cuDNN для CUDA 10.1, и я выполнил следующие требования:

0 голосов
/ 02 мая 2020

Это может быть отсутствующий каталог из переменной среды% PATH%.

...