keras-contrib
keras-contrib copied to clipboard
ModuleNotFoundError: No module named 'keras_applications'
This is should be "keras.applications", but it is "keras_applications" in .densenet This is because files in /keras_contrib/applications is wrong
I got the same issue while building TF from source https://www.tensorflow.org/install/install_sources
I am manually chaning the tf source's keras_applications into keras.applications at tensorflow/tensorflow/python/keras/applications/init.py will get back to this after rebuild
Just checked out master of TF and tried to build.
from tensorflow.python.keras import applications
File "/home/jovyan/.cache/bazel/_bazel_root/e5cce820cc082410b4fcc604db349066/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/keras/applications/__init__.py", line 22, in <module>
import keras_applications
ModuleNotFoundError: No module named 'keras_applications'
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 18102.662s, Critical Path: 593.70s
INFO: 12591 processes: 12591 local.
FAILED: Build did NOT complete successfully
With pip just install keras_application
and keras_preprocessing
that should fix the issue of building TF from source.
Thank you @mpekalski , that fixed the issue!!
I encountered the same error from 'No module named 'keras_applications' by using
pip install keras
tensorflow 1.10.0 has requirement for both. You can change to install the proper version by the time being. Now my program complied successfully in the latest master branch.
Note: in the current version I have receive incompatible warning
when I was trying to install them individually.
Thanks @mpekalski for pointing it out.
@mpekalski
With pip just install
keras_application
andkeras_preprocessing
that should fix the issue of building TF from source.
I think this should say keras_applications
with an "s" at the end.
Anyone doing this, remember your pip command for python 3.x might be pip3
ModuleNotFoundError Traceback (most recent call last)
ModuleNotFoundError: No module named 'keras'
I installed keras using anaconda it was done successfully but whentrying my code in jupyter notebook i its showing the error as above
How to avoid below error,
AttributeError: module 'keras_applications' has no attribute 'set_keras_submodules'
it is erro about the version the keras, i were used keras=2.2.2 and i upgraded the keras=2.2.4
it is about the version of keras, i were with keras=2.2.2 and i upgraded to keras=2.2.4
When I use
from keras.preprocessing import image
I'm getting many module missing error
How can I fix it
@Yogalasksmi Please check the keras 2.1.5 . I think problem in latest version. What version keras are you using ?
@Yogalasksmi Maybe you could use pip3 install --upgrade keras_preprocessing
or reinstall it (uninstall and install) It works on my computer.
@mpekalski
(/scratch3/3d_pose/animalpose/leap_env) [jalal@goku leap]$ pip install keras_application
ERROR: Could not find a version that satisfies the requirement keras_application (from versions: none)
ERROR: No matching distribution found for keras_application
(/scratch3/3d_pose/animalpose/leap_env) [jalal@goku leap]$ pip install keras_processing
ERROR: Could not find a version that satisfies the requirement keras_processing (from versions: none)
ERROR: No matching distribution found for keras_processing
With pip just install
keras_application
andkeras_preprocessing
that should fix the issue of building TF from source.
thank you very much
With pip just install
keras_application
andkeras_preprocessing
that should fix the issue of building TF from source.
It works. Thank you.
With pip just install
keras_application
andkeras_preprocessing
that should fix the issue of building TF from source.It works. Thank you.
application replace with applications then it is working
With pip just install
keras_application
andkeras_preprocessing
that should fix the issue of building TF from source.
pip install keras_applications
It will work with "pip install keras_applications" after that, if needed, just import keras_applications. for me, it worked
Try using !pip install keras_applications this solved it in my case!