I have Anaconda 4.3.1 installed on my laptop after commands cd /home/username/anaconda3and source bin/activate ~/anaconda3my package. And I installed keras using pip3 conda install kerasinside my anaconda. package.and made a document called keras.json inside my keras . When I run my Python in anaconda3 and import keras, this happens
>>> import keras'
Using TensorFlow backend.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tushar/.local/lib/python3.5/site-packages/keras/__init__.py", line 3, in <module>
from . import activations
File "/home/tushar/.local/lib/python3.5/site-packages/keras/activations.py", line 3, in <module>
from . import backend as K
File "/home/tushar/.local/lib/python3.5/site-packages/keras/backend/__init__.py", line 64, in <module>
from .tensorflow_backend import *
File "/home/tushar/.local/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py", line 6, in <module>
from tensorflow.python.ops import ctc_ops as ctc
ImportError: cannot import name 'ctc_ops'
After that, I could not find a solution. I would appreciate any help.
source
share