Code for reproducing the bug:
import autokeras
Traceback (most recent call last):
File "", line 1, in
File "/home/leandro/.local/share/virtualenvs/Moira-jyrwulee/lib/python3.7/site-packages/autokeras/__init__.py", line 1, in
from autokeras.auto_model import AutoModel
File "/home/leandro/.local/share/virtualenvs/Moira-jyrwulee/lib/python3.7/site-packages/autokeras/auto_model.py", line 11, in
from autokeras import blocks
File "/home/leandro/.local/share/virtualenvs/Moira-jyrwulee/lib/python3.7/site-packages/autokeras/blocks/__init__.py", line 3, in
from autokeras.blocks.basic import ConvBlock
File "/home/leandro/.local/share/virtualenvs/Moira-jyrwulee/lib/python3.7/site-packages/autokeras/blocks/basic.py", line 3, in
from kerastuner.applications import resnet
ModuleNotFoundError: No module named 'kerastuner'
Data used by the code:
Include the details about the versions of:
When I install manually keras-tuner (pip install keras-tuner) the following error is thrown
import autokeras
Traceback (most recent call last):
File "", line 1, in
File "/home/leandro/.local/share/virtualenvs/Moira-jyrwulee/lib/python3.7/site-packages/autokeras/__init__.py", line 48, in
check_kt_version()
File "/home/leandro/.local/share/virtualenvs/Moira-jyrwulee/lib/python3.7/site-packages/autokeras/utils/utils.py", line 67, in check_kt_version
'ok.'.format(version=kerastuner.__version__)
ImportError: The Keras Tuner package version needs to be at least 1.0.2rc0
for AutoKeras to run. Currently, your Keras Tuner version is
1.0.1. Please upgrade with
$ pip install git+https://github.com/keras-team/[email protected]#egg=keras-tuner-1.0.2rc0.
You can usepip freezeto check afterwards that everything is ok.
Sorry if it was boring, I just want to help.
Please uninstall it and install it with this command. pip install git+https://github.com/keras-team/[email protected]#egg=keras-tuner-1.0.2rc0
Please uninstall it and install it with this command.
pip install git+https://github.com/keras-team/[email protected]#egg=keras-tuner-1.0.2rc0
I tried and it worked. Thks!
Please uninstall it and install it with this command.
pip install git+https://github.com/keras-team/[email protected]#egg=keras-tuner-1.0.2rc0
I am facing the same issue and this one didn't work out for me,
it threw an error saying:
"ERROR: Could not find a version that satisfies the requirement keras-tuner-1-0-2rc0 (unavailable) (from versions: none)
ERROR: No matching distribution found for keras-tuner-1-0-2rc0 (unavailable)
"
Please use below code in Anaconda cmd prompt
pip install keras
pip install keras-tuner
Please use below code in Anaconda cmd prompt
pip install keras
pip install keras-tuner
I did, it did not work, even if I pipped it on an anaconda cmd and launched Pycharm from Anaconda. but I copied the code to a jupyter notebook and everything worked fine!
One more question if you I may ask,
I uploaded the jupyter notebook to an Azure notebook to train my model there, however, the keras-tuner kept giving an error states the following:
"AttributeError: module 'tensorflow.keras.layers.experimental.preprocessing' has no attribute 'RandomRotation'"
(even though I have the latest version of TensorFlow.
any idea, please?
Most helpful comment
Please uninstall it and install it with this command.
pip install git+https://github.com/keras-team/[email protected]#egg=keras-tuner-1.0.2rc0