我在导入keras时遇到以下错误。请帮助我解决此问题。
使用:
MAC OSX Mojave
Keras 2.2.4
Keras-应用程序1.0.7
Keras预处理1.0.9
1 import keras
/anaconda3/lib/python3.6/site-packages/keras/__init__.py in <module>()
1 from __future__ import absolute_import
2
3 from . import utils
4 from . import activations
5 from . import applications
/anaconda3/lib/python3.6/site-packages/keras/utils/__init__.py in <module>()
4 from . import data_utils
5 from . import io_utils
6 from . import conv_utils
7
8 # Globally-importable utils.
/anaconda3/lib/python3.6/site-packages/keras/utils/conv_utils.py in <module>()
7 from six.moves import range
8 import numpy as np
9 from .. import backend as K
10
11
/anaconda3/lib/python3.6/site-packages/keras/backend/__init__.py in <module>()
87 elif _BACKEND == 'tensorflow':
88 sys.stderr.write('Using TensorFlow backend.\n')
89 from .tensorflow_backend import *
90 else:
91 # Try and load external backend.
/anaconda3/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py in <module>()
3 from __future__ import print_function
4
5 import tensorflow as tf
6 from tensorflow.python.framework import ops as tf_ops
7 from tensorflow.python.training import moving_averages
/anaconda3/lib/python3.6/site-packages/tensorflow/__init__.py in <module>()
613 # resolution to succeed.
614 # pylint: disable=undefined-variable
615 del python
616 del core
617 # pylint: enable=undefined-variable
NameError: name 'python' is not defined