I can't import tflearn with TensorFlow 2.0
Python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:54:52)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.
>>> import tflearn
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tflearn/helpers/summarizer.py", line 9, in <module>
merge_summary = tf.summary.merge
AttributeError: module 'tensorboard.summary._tf.summary' has no attribute 'merge'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import tflearn
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tflearn/__init__.py", line 8, in <module>
from . import models
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tflearn/models/__init__.py", line 2, in <module>
from .dnn import DNN
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tflearn/models/dnn.py", line 6, in <module>
from ..helpers.trainer import Trainer
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tflearn/helpers/__init__.py", line 2, in <module>
from .evaluator import Evaluator
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tflearn/helpers/evaluator.py", line 9, in <module>
from .trainer import evaluate_flow
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tflearn/helpers/trainer.py", line 20, in <module>
from .summarizer import summaries, summarize, summarize_gradients, \
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tflearn/helpers/summarizer.py", line 12, in <module>
merge_summary = tf.merge_summary
AttributeError: module 'tensorflow' has no attribute 'merge_summary'
Can anyone help me with this? I really need it to get solved as soon as possible. I am pretty much new to tensorflow.