Уведомления

Группа в Telegram: @pythonsu

#1 Июнь 19, 2018 09:21:59

muk07
Зарегистрирован: 2017-08-29
Сообщения: 3
Репутация: +  0  -
Профиль   Отправить e-mail  

Переустановка tensorflow

Имел некоторые проблемы с tensorflow.
На форуме sql.ru хороший человек дал мне ссылку:
https://github.com/keras-team/keras/issues/2397
где написано:
There appears to be a bug in the make_predict_function for the tensorflow backend.
The following error message appears for me when trying to call model.predict(…)
This does not happen when using the theano backend.

Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git/github.com/fchollet/keras.git –upgrade –no-deps
If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git/github.com/Theano/Theano.git –upgrade –no-deps

После выполнения
pip install git+git/github.com/fchollet/keras.git –upgrade –no-deps
получил сообщения о необходимости освежить tensorflow
После переустановки tensorflow ничего не работает.
Вот последний traceback, после которого я уже не знаю что делать:

Using TensorFlow backend.
Traceback (most recent call last):
File “C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 14, in swig_import_helper
return importlib.import_module(mname)
File “C:\Program Files\Python36\lib\importlib\__init__.py”, line 126, in import_module
return _bootstrap._gcd_import(name, package, level)
File “<frozen importlib._bootstrap>”, line 978, in _gcd_import
File “<frozen importlib._bootstrap>”, line 961, in _find_and_load
File “<frozen importlib._bootstrap>”, line 950, in _find_and_load_unlocked
File “<frozen importlib._bootstrap>”, line 648, in _load_unlocked
File “<frozen importlib._bootstrap>”, line 560, in module_from_spec
File “<frozen importlib._bootstrap_external>”, line 922, in create_module
File “<frozen importlib._bootstrap>”, line 205, in _call_with_frames_removed
ImportError: DLL load failed with error code -1073741795

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”, line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File “C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 17, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File “C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 16, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File “C:\Program Files\Python36\lib\importlib\__init__.py”, line 126, in import_module
return _bootstrap._gcd_import(name, package, level)
ModuleNotFoundError: No module named ‘_pywrap_tensorflow_internal’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “K:\MT5\Python\Server1.py”, line 11, in <module>
from keras.models import model_from_json
File “C:\Program Files\Python36\lib\site-packages\keras\__init__.py”, line 3, in <module>
from . import utils
File “C:\Program Files\Python36\lib\site-packages\keras\utils\__init__.py”, line 6, in <module>
from . import conv_utils
File “C:\Program Files\Python36\lib\site-packages\keras\utils\conv_utils.py”, line 9, in <module>
from .. import backend as K
File “C:\Program Files\Python36\lib\site-packages\keras\backend\__init__.py”, line 87, in <module>
from .tensorflow_backend import *
File “C:\Program Files\Python36\lib\site-packages\keras\backend\tensorflow_backend.py”, line 5, in <module>
import tensorflow as tf
File “C:\Program Files\Python36\lib\site-packages\tensorflow\__init__.py”, line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File “C:\Program Files\Python36\lib\site-packages\tensorflow\python\__init__.py”, line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File “C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”, line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File “C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 14, in swig_import_helper
return importlib.import_module(mname)
File “C:\Program Files\Python36\lib\importlib\__init__.py”, line 126, in import_module
return _bootstrap._gcd_import(name, package, level)
File “<frozen importlib._bootstrap>”, line 978, in _gcd_import
File “<frozen importlib._bootstrap>”, line 961, in _find_and_load
File “<frozen importlib._bootstrap>”, line 950, in _find_and_load_unlocked
File “<frozen importlib._bootstrap>”, line 648, in _load_unlocked
File “<frozen importlib._bootstrap>”, line 560, in module_from_spec
File “<frozen importlib._bootstrap_external>”, line 922, in create_module
File “<frozen importlib._bootstrap>”, line 205, in _call_with_frames_removed
ImportError: DLL load failed with error code -1073741795

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”, line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File “C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 17, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File “C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 16, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File “C:\Program Files\Python36\lib\importlib\__init__.py”, line 126, in import_module
return _bootstrap._gcd_import(name, package, level)
ModuleNotFoundError: No module named ‘_pywrap_tensorflow_internal’


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_problems

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
Прошу помощи.]

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version