ImportError: cannot import name ‘get_config’
Traceback (most recent call last):
File "siameseNet.py", line 6, in <module>
from keras.layers import Merge
File "/usr/local/lib/python3.6/site-packages/keras/__init__.py", line 25, in <module>
from keras import models
File "/usr/local/lib/python3.6/site-packages/keras/models.py", line 19, in <module>
from keras import backend
File "/usr/local/lib/python3.6/site-packages/keras/backend.py", line 39, in <module>
from tensorflow.python.eager.context import get_config
ImportError: cannot import name 'get_config'
Solution:
pip install keras == 2.1.0 --force-reinstall
Read More:
- [Solved] OpenCV Import Error: ImportError: numpy.core.multiarray failed to import
- Raspberry pie import opencv error: ImportError: numpy.core.multiarray failed to import
- [Solved] From pip._internal import cmdoptions ImportError: cannot import name SourceDistribution
- Tensorflow import Error: ImportError: libcuda.so.1: cannot open shared object file: No such file or dire
- [Solved] Python Relative Reference Error: ImportError: attempted relative import with no known parent package
- How to Solve Python ImportError: cannot import name UnrewindableBodyError
- from keras.preprocessing.text import Tokenizer error: AttributeError: module ‘tensorflow.compat.v2‘ has..
- Import win32API; importerror: DLL load failed: the specified program was not found
- How to Solve Error “ImportError: cannot import name imsave“
- [Solved] ImportError: cannot import name ‘delayed‘ from ‘sklearn.utils.fixes‘
- import statsmodels.api as sm Error: ImportError: DLL load failed while importing _arpack: The specified program could not be found.
- Python Import Error: SystemError: Parent module ‘‘ not loaded, cannot perform relative import
- [Solved] D2lzh_Pytorch Import error: importerror: DLL load failed while importing
- Python ImportError: numpy.core.multiarray failed to import
- [Solved] Import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- [Solved] Django project locally Open Error: importerror: couldn’t import Django
- Keras import a custom metric model error: unknown metric function: Please ensure this object is passed to`custom_object‘
- Python Error: ImportError: cannot import name ‘logsumexp’ from ‘scipy.misc’(Anaconda3\lib\site-packages\scipy\misc)
- The PIP installation package was successful but the import failed
- [Solved] UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring it