harvitronix / five-video-classification-methods

Code that accompanies my blog post outlining five video classification methods in Keras and TensorFlow
https://medium.com/@harvitronix/five-video-classification-methods-implemented-in-keras-and-tensorflow-99cad29cc0b5
MIT License
1.17k stars 479 forks source link

ModuleNotFoundError: No module named 'tensorflow.python' #81

Closed Joeng22 closed 6 years ago

Joeng22 commented 6 years ago

import keras

following errors get printed

from tensorflow.python.training import moving_averages ModuleNotFoundError: No module named 'tensorflow.python'

any idea??

sayanmutd commented 6 years ago

Please change the backend of Keras to Theano by installing theano and editing the ~/.keras/keras.json file

harvitronix commented 6 years ago

I believe this is just because you don't have TensorFlow installed... see here for installation instructions: https://www.tensorflow.org/install/

josecyc commented 5 years ago

I had to unintstall tensorflow from the python site packages manually and reinstalled it and the issue went away. This might be caused by having tensorflow in conda and python site packages, whenever you uninstall and install from conda but not from python site packages the issue appears.