Модуль с именем pywrap tenorflow не найден - PullRequest
0 голосов
/ 12 апреля 2019

Вместо установки необходимых пакетов, я получаю сообщение об ошибке при импорте keras или тензор потока.У меня уже есть msvcp140.dll в пути. Сообщение об ошибке выглядит следующим образом: 'C: \ Users \ admin> python Python 3.6.5 (v3.6.5: f59c0932b4, 28 марта 2018, 16:07:46) [MSC v.190032 бита (Inte l)] на win32 Для получения дополнительной информации введите «help», «copyright», «credits» или «license».

import keras Использование бэкэнда TensorFlow.Трассировка (последний вызов был последним): файл "C: \ Users \ admin \ AppData \ Local \ Programs \ Python \ Python36-32 \ lib \ site- packag es \ tenorsflow \ python \ pywrap_tensorflow.py", строка 18, в swig_import_helperfp, pathname, description = imp.find_module ('_ pywrap_tensorflow', [dirname (_ _file__)]) Файл "C: \ Users \ admin \ AppData \ Local \ Programs \ Python \ Python36-32 \ lib \ imp.py",li 297, в find_module поднять ImportError (_ERR_MSG.format (name), name = name) ImportError: Нет модуля с именем '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\tensorflow\python\__init__.py", line 66, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\tensorflow\python\pywrap_tensorflow.py", line 28, in <module>
_pywrap_tensorflow = swig_import_helper()
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\tensorflow\python\pywrap_tensorflow.py", line 20, in 
swig_import_helper
import _pywrap_tensorflow
ModuleNotFoundError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\keras\__init__.py", line 3, in <module>
from . import utils
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\keras\utils\__init__.py", line 6, in <module>
from . import conv_utils
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\keras\utils\conv_utils.py", line 9, in <module>
from .. import backend as K
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\keras\backend\__init__.py", line 89, in <module>
from .tensorflow_backend import *
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\keras\backend\tensorflow_backend.py", line 5, in <module>
import tensorflow as tf
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import *
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\tensorflow\python\__init__.py", line 72, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\tensorflow\python\pywrap_tensorflow.py", line 18, in 
swig_import_helper
fp, pathname, description = imp.find_module('_pywrap_tensorflow', 
[dirname(_
_file__)])
File "C:\Users\admin\AppData\Local\Programs\Python\Python36- 
32\lib\imp.py", li
ne 297, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\tensorflow\python\__init__.py", line 66, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\tensorflow\python\pywrap_tensorflow.py", line 28, in <module>
_pywrap_tensorflow = swig_import_helper()
File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\lib\site- 
packag
es\tensorflow\python\pywrap_tensorflow.py", line 20, in 
swig_import_helper
import _pywrap_tensorflow
ModuleNotFoundError: No module named '_pywrap_tensorflow'


Failed to load the native TensorFlow runtime.

See 

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_st arted / os_setup.md # import_error

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.'



I have tried by installing msvcp140.dll many times, though it is not 
error shown above.
...