[Autokeras] installation problem

Hello,

I am trying to install autokeras, I followed the instruction: Installation - AutoKeras but when I run “pip install autokeras” it fails with the following error

  error: subprocess-exited-with-error
  
  python setup.py egg_info did not run successfully.
  exit code: 1
  
  [6 lines of output]
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\xyz\AppData\Local\Temp\pip-install-llcqb_7t\h5py_bb8445dbae6d4ff1a100a226057a64ed\setup.py", line 24, in <module>
      from distutils.command.build_py \
  ImportError: cannot import name 'build_py_2to3' from 'distutils.command.build_py' (C:\Users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages\setuptools\_distutils\command\build_py.py)
  [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

I am using Python3.9, anaconda, jupyter notebook and packages below:
tensorflow 2.10.1
pip 24.0
setuptools 69.5.1

I tried using different setuptools versions, upgrading and downgrading as suggested on stackoverflow and github forums, but still no success. Any ideas what else I can do? Thank you in advance!

Full log:

Collecting autokeras
  Using cached autokeras-2.0.0-py3-none-any.whl.metadata (5.8 kB)
Requirement already satisfied: packaging in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from autokeras) (23.2)
Requirement already satisfied: keras-tuner>=1.4.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from autokeras) (1.4.7)
Collecting keras-nlp>=0.8.0 (from autokeras)
  Using cached keras_nlp-0.9.3-py3-none-any.whl.metadata (7.0 kB)
Collecting keras>=3.0.0 (from autokeras)
  Using cached keras-3.2.1-py3-none-any.whl.metadata (5.6 kB)
Collecting dm-tree (from autokeras)
  Using cached dm_tree-0.1.8-cp39-cp39-win_amd64.whl.metadata (2.0 kB)
Requirement already satisfied: absl-py in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from keras>=3.0.0->autokeras) (2.1.0)
Requirement already satisfied: numpy in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from keras>=3.0.0->autokeras) (1.26.4)
Collecting rich (from keras>=3.0.0->autokeras)
  Using cached rich-13.7.1-py3-none-any.whl.metadata (18 kB)
Collecting namex (from keras>=3.0.0->autokeras)
  Using cached namex-0.0.8-py3-none-any.whl.metadata (246 bytes)
Requirement already satisfied: h5py in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from keras>=3.0.0->autokeras) (3.11.0)
Collecting optree (from keras>=3.0.0->autokeras)
  Using cached optree-0.11.0-cp39-cp39-win_amd64.whl.metadata (46 kB)
Collecting ml-dtypes (from keras>=3.0.0->autokeras)
  Using cached ml_dtypes-0.4.0-cp39-cp39-win_amd64.whl.metadata (20 kB)
Collecting keras-core (from keras-nlp>=0.8.0->autokeras)
  Using cached keras_core-0.1.7-py3-none-any.whl.metadata (4.3 kB)
Collecting regex (from keras-nlp>=0.8.0->autokeras)
  Using cached regex-2024.4.16-cp39-cp39-win_amd64.whl.metadata (41 kB)
Collecting kagglehub (from keras-nlp>=0.8.0->autokeras)
  Using cached kagglehub-0.2.3-py3-none-any.whl.metadata (18 kB)
Collecting tensorflow-text (from keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_text-2.10.0-cp39-cp39-win_amd64.whl.metadata (2.1 kB)
Requirement already satisfied: requests in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from keras-tuner>=1.4.0->autokeras) (2.31.0)
Requirement already satisfied: kt-legacy in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from keras-tuner>=1.4.0->autokeras) (1.0.5)
Collecting tqdm (from kagglehub->keras-nlp>=0.8.0->autokeras)
  Using cached tqdm-4.66.2-py3-none-any.whl.metadata (57 kB)
Requirement already satisfied: typing-extensions>=4.0.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from optree->keras>=3.0.0->autokeras) (4.9.0)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from requests->keras-tuner>=1.4.0->autokeras) (2.0.4)
Requirement already satisfied: idna<4,>=2.5 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from requests->keras-tuner>=1.4.0->autokeras) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from requests->keras-tuner>=1.4.0->autokeras) (2.1.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from requests->keras-tuner>=1.4.0->autokeras) (2024.2.2)
Collecting markdown-it-py>=2.2.0 (from rich->keras>=3.0.0->autokeras)
  Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from rich->keras>=3.0.0->autokeras) (2.15.1)
Collecting tensorflow-hub>=0.8.0 (from tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_hub-0.16.1-py2.py3-none-any.whl.metadata (1.3 kB)
Requirement already satisfied: tensorflow<2.11,>=2.10.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow-text->keras-nlp>=0.8.0->autokeras) (2.10.1)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich->keras>=3.0.0->autokeras)
  Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Requirement already satisfied: astunparse>=1.6.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (1.6.3)
Requirement already satisfied: flatbuffers>=2.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (24.3.25)
Requirement already satisfied: gast<=0.4.0,>=0.2.1 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (0.4.0)
Requirement already satisfied: google-pasta>=0.1.1 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (0.2.0)
Requirement already satisfied: keras-preprocessing>=1.1.1 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (1.1.2)
Requirement already satisfied: libclang>=13.0.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (18.1.1)
Requirement already satisfied: opt-einsum>=2.3.2 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (3.3.0)
Requirement already satisfied: protobuf<3.20,>=3.9.2 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (3.19.6)
Requirement already satisfied: setuptools in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (69.5.1)
Requirement already satisfied: six>=1.12.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (1.16.0)
Requirement already satisfied: termcolor>=1.1.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (2.4.0)
Requirement already satisfied: wrapt>=1.11.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (1.16.0)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (0.31.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (1.62.2)
Requirement already satisfied: tensorboard<2.11,>=2.10 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (2.10.1)
Requirement already satisfied: tensorflow-estimator<2.11,>=2.10.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.11,>=2.10.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (2.10.0)
INFO: pip is looking at multiple versions of tensorflow to determine which version is compatible with other requirements. This could take a while.
Collecting tensorflow<2.11,>=2.10.0 (from tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.10.0-cp39-cp39-win_amd64.whl.metadata (3.1 kB)
Collecting tensorflow-text (from keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_text-2.9.0-cp39-cp39-win_amd64.whl.metadata (2.1 kB)
Collecting tensorflow<2.10,>=2.9.0 (from tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.9.3-cp39-cp39-win_amd64.whl.metadata (3.0 kB)
Collecting flatbuffers<2,>=1.12 (from tensorflow<2.10,>=2.9.0->tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached flatbuffers-1.12-py2.py3-none-any.whl.metadata (872 bytes)
Collecting tensorboard<2.10,>=2.9 (from tensorflow<2.10,>=2.9.0->tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorboard-2.9.1-py3-none-any.whl.metadata (1.9 kB)
Collecting tensorflow-estimator<2.10.0,>=2.9.0rc0 (from tensorflow<2.10,>=2.9.0->tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_estimator-2.9.0-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting tensorflow<2.10,>=2.9.0 (from tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.9.2-cp39-cp39-win_amd64.whl.metadata (3.0 kB)
  Using cached tensorflow-2.9.1-cp39-cp39-win_amd64.whl.metadata (3.0 kB)
  Using cached tensorflow-2.9.0-cp39-cp39-win_amd64.whl.metadata (3.0 kB)
Collecting tensorflow-text (from keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_text-2.8.2-cp39-cp39-win_amd64.whl.metadata (2.1 kB)
Collecting tensorflow<2.9,>=2.8.0 (from tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.8.4-cp39-cp39-win_amd64.whl.metadata (2.9 kB)
Collecting tensorboard<2.9,>=2.8 (from tensorflow<2.9,>=2.8.0->tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorboard-2.8.0-py3-none-any.whl.metadata (1.9 kB)
Collecting tensorflow-estimator<2.9,>=2.8 (from tensorflow<2.9,>=2.8.0->tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_estimator-2.8.0-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting tensorflow<2.9,>=2.8.0 (from tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.8.3-cp39-cp39-win_amd64.whl.metadata (2.9 kB)
INFO: pip is still looking at multiple versions of tensorflow to determine which version is compatible with other requirements. This could take a while.
  Using cached tensorflow-2.8.2-cp39-cp39-win_amd64.whl.metadata (2.9 kB)
  Using cached tensorflow-2.8.1-cp39-cp39-win_amd64.whl.metadata (2.9 kB)
  Using cached tensorflow-2.8.0-cp39-cp39-win_amd64.whl.metadata (2.9 kB)
Collecting tf-estimator-nightly==2.8.0.dev2021122109 (from tensorflow<2.9,>=2.8.0->tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tf_estimator_nightly-2.8.0.dev2021122109-py2.py3-none-any.whl.metadata (1.2 kB)
Collecting tensorflow-text (from keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_text-2.8.1-cp39-cp39-win_amd64.whl.metadata (2.0 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
  Using cached tensorflow_text-2.7.3-cp39-cp39-win_amd64.whl.metadata (1.8 kB)
Collecting tensorflow<2.8,>=2.7.0 (from tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.7.4-cp39-cp39-win_amd64.whl.metadata (2.9 kB)
Collecting flatbuffers<3.0,>=1.12 (from tensorflow<2.8,>=2.7.0->tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached flatbuffers-2.0.7-py2.py3-none-any.whl.metadata (872 bytes)
Requirement already satisfied: wheel<1.0,>=0.32.0 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorflow<2.8,>=2.7.0->tensorflow-text->keras-nlp>=0.8.0->autokeras) (0.43.0)
Collecting tensorflow-estimator<2.8,~=2.7.0rc0 (from tensorflow<2.8,>=2.7.0->tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_estimator-2.7.0-py2.py3-none-any.whl.metadata (1.2 kB)
Collecting tensorflow<2.8,>=2.7.0 (from tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.7.3-cp39-cp39-win_amd64.whl.metadata (2.9 kB)
  Using cached tensorflow-2.7.2-cp39-cp39-win_amd64.whl.metadata (2.9 kB)
  Using cached tensorflow-2.7.1-cp39-cp39-win_amd64.whl.metadata (2.9 kB)
  Using cached tensorflow-2.7.0-cp39-cp39-win_amd64.whl.metadata (2.9 kB)
Collecting tensorflow-text (from keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_text-2.6.0-cp39-cp39-win_amd64.whl.metadata (1.8 kB)
Collecting tensorflow<2.7,>=2.6.0 (from tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.6.5-cp39-cp39-win_amd64.whl.metadata (2.8 kB)
  Using cached tensorflow-2.6.4-cp39-cp39-win_amd64.whl.metadata (2.8 kB)
  Using cached tensorflow-2.6.3-cp39-cp39-win_amd64.whl.metadata (2.8 kB)
  Using cached tensorflow-2.6.2-cp39-cp39-win_amd64.whl.metadata (2.8 kB)
  Using cached tensorflow-2.6.1-cp39-cp39-win_amd64.whl.metadata (2.8 kB)
  Using cached tensorflow-2.6.0-cp39-cp39-win_amd64.whl.metadata (2.8 kB)
Collecting tensorflow-text (from keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_text-2.5.0-cp39-cp39-win_amd64.whl.metadata (1.8 kB)
Collecting tensorflow<2.6,>=2.5.0 (from tensorflow-text->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.5.3-cp39-cp39-win_amd64.whl.metadata (2.8 kB)
  Using cached tensorflow-2.5.2-cp39-cp39-win_amd64.whl.metadata (2.8 kB)
  Using cached tensorflow-2.5.1-cp39-cp39-win_amd64.whl.metadata (2.8 kB)
  Using cached tensorflow-2.5.0-cp39-cp39-win_amd64.whl.metadata (2.8 kB)
Collecting ml-dtypes (from keras>=3.0.0->autokeras)
  Using cached ml_dtypes-0.3.2-cp39-cp39-win_amd64.whl.metadata (20 kB)
  Using cached ml_dtypes-0.3.1-cp39-cp39-win_amd64.whl.metadata (20 kB)
  Using cached ml_dtypes-0.3.0-cp39-cp39-win_amd64.whl.metadata (20 kB)
  Using cached ml_dtypes-0.2.0-cp39-cp39-win_amd64.whl.metadata (20 kB)
  Using cached ml_dtypes-0.1.0-cp39-cp39-win_amd64.whl.metadata (16 kB)
  Using cached ml_dtypes-0.0.4-cp39-cp39-win_amd64.whl.metadata (16 kB)
  Using cached ml_dtypes-0.0.3-cp39-cp39-win_amd64.whl.metadata (16 kB)
  Using cached ml_dtypes-0.0.2-cp39-cp39-win_amd64.whl.metadata (15 kB)
  Using cached ml_dtypes-0.0.1.tar.gz (680 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting keras-core (from keras-nlp>=0.8.0->autokeras)
  Using cached keras_core-0.1.6-py3-none-any.whl.metadata (4.3 kB)
  Using cached keras_core-0.1.5-py3-none-any.whl.metadata (4.0 kB)
  Using cached keras_core-0.1.4-py3-none-any.whl.metadata (4.0 kB)
  Using cached keras_core-0.1.3-py3-none-any.whl.metadata (4.0 kB)
  Using cached keras_core-0.1.2-py3-none-any.whl.metadata (3.9 kB)
  Using cached keras_core-0.1.1-py3-none-any.whl.metadata (3.9 kB)
  Using cached keras_core-0.1.0-py3-none-any.whl.metadata (3.9 kB)
Collecting tensorflow (from keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.16.1-cp39-cp39-win_amd64.whl.metadata (3.5 kB)
Collecting tensorflow-intel==2.16.1 (from tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_intel-2.16.1-cp39-cp39-win_amd64.whl.metadata (5.0 kB)
Collecting protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3 (from tensorflow-intel==2.16.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached protobuf-4.25.3-cp39-cp39-win_amd64.whl.metadata (541 bytes)
Collecting tensorboard<2.17,>=2.16 (from tensorflow-intel==2.16.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorboard-2.16.2-py3-none-any.whl.metadata (1.6 kB)
Requirement already satisfied: markdown>=2.6.8 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorboard<2.17,>=2.16->tensorflow-intel==2.16.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras) (3.6)
Collecting tensorboard-data-server<0.8.0,>=0.7.0 (from tensorboard<2.17,>=2.16->tensorflow-intel==2.16.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorboard_data_server-0.7.2-py3-none-any.whl.metadata (1.1 kB)
Requirement already satisfied: werkzeug>=1.0.1 in c:\users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages (from tensorboard<2.17,>=2.16->tensorflow-intel==2.16.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras) (3.0.2)
Collecting tensorboard<2.17,>=2.16 (from tensorflow-intel==2.16.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorboard-2.16.1-py3-none-any.whl.metadata (1.6 kB)
Collecting tf-keras>=2.15.0 (from tensorboard<2.17,>=2.16->tensorflow-intel==2.16.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tf_keras-2.16.0-py3-none-any.whl.metadata (1.6 kB)
Collecting tensorboard<2.17,>=2.16 (from tensorflow-intel==2.16.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorboard-2.16.0-py3-none-any.whl.metadata (1.6 kB)
Collecting tf-keras-nightly (from tensorboard<2.17,>=2.16->tensorflow-intel==2.16.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tf_keras_nightly-2.17.0.dev2024042109-py3-none-any.whl.metadata (1.6 kB)
Collecting tensorflow (from keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.15.1-cp39-cp39-win_amd64.whl.metadata (3.4 kB)
Collecting tensorflow-intel==2.15.1 (from tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_intel-2.15.1-cp39-cp39-win_amd64.whl.metadata (4.9 kB)
Collecting wrapt<1.15,>=1.11.0 (from tensorflow-intel==2.15.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached wrapt-1.14.1-cp39-cp39-win_amd64.whl.metadata (6.7 kB)
Collecting tensorboard<2.16,>=2.15 (from tensorflow-intel==2.15.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorboard-2.15.2-py3-none-any.whl.metadata (1.7 kB)
Collecting tensorflow-estimator<2.16,>=2.15.0 (from tensorflow-intel==2.15.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_estimator-2.15.0-py2.py3-none-any.whl.metadata (1.3 kB)
INFO: pip is looking at multiple versions of tensorflow-intel to determine which version is compatible with other requirements. This could take a while.
Collecting tensorflow (from keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.15.0-cp39-cp39-win_amd64.whl.metadata (3.6 kB)
Collecting tensorflow-intel==2.15.0 (from tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_intel-2.15.0-cp39-cp39-win_amd64.whl.metadata (5.1 kB)
Collecting tensorflow (from keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.14.1-cp39-cp39-win_amd64.whl.metadata (3.3 kB)
Collecting tensorflow-intel==2.14.1 (from tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_intel-2.14.1-cp39-cp39-win_amd64.whl.metadata (4.8 kB)
Collecting tensorboard<2.15,>=2.14 (from tensorflow-intel==2.14.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorboard-2.14.1-py3-none-any.whl.metadata (1.7 kB)
Collecting tensorflow-estimator<2.15,>=2.14.0 (from tensorflow-intel==2.14.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_estimator-2.14.0-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting tensorflow (from keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.14.0-cp39-cp39-win_amd64.whl.metadata (3.3 kB)
Collecting tensorflow-intel==2.14.0 (from tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_intel-2.14.0-cp39-cp39-win_amd64.whl.metadata (4.8 kB)
Collecting tensorflow (from keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.13.1-cp39-cp39-win_amd64.whl.metadata (2.6 kB)
Collecting tensorflow-intel==2.13.1 (from tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_intel-2.13.1-cp39-cp39-win_amd64.whl.metadata (4.1 kB)
Collecting numpy (from keras>=3.0.0->autokeras)
  Using cached numpy-1.24.3-cp39-cp39-win_amd64.whl.metadata (5.6 kB)
Collecting typing-extensions>=4.0.0 (from optree->keras>=3.0.0->autokeras)
  Using cached typing_extensions-4.5.0-py3-none-any.whl.metadata (8.5 kB)
Collecting tensorboard<2.14,>=2.13 (from tensorflow-intel==2.13.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorboard-2.13.0-py3-none-any.whl.metadata (1.8 kB)
Collecting tensorflow-estimator<2.14,>=2.13.0 (from tensorflow-intel==2.13.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_estimator-2.13.0-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting tensorflow (from keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.13.0-cp39-cp39-win_amd64.whl.metadata (2.6 kB)
Collecting tensorflow-intel==2.13.0 (from tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_intel-2.13.0-cp39-cp39-win_amd64.whl.metadata (4.1 kB)
Collecting tensorflow (from keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow-2.12.1-cp39-cp39-win_amd64.whl.metadata (2.5 kB)
Collecting tensorflow-intel==2.12.1 (from tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_intel-2.12.1-cp39-cp39-win_amd64.whl.metadata (4.1 kB)
Collecting jax>=0.3.15 (from tensorflow-intel==2.12.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached jax-0.4.26-py3-none-any.whl.metadata (23 kB)
Collecting tensorboard<2.13,>=2.12 (from tensorflow-intel==2.12.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorboard-2.12.3-py3-none-any.whl.metadata (1.8 kB)
Collecting tensorflow-estimator<2.13,>=2.12.0 (from tensorflow-intel==2.12.1->tensorflow->keras-core->keras-nlp>=0.8.0->autokeras)
  Using cached tensorflow_estimator-2.12.0-py2.py3-none-any.whl.metadata (1.3 kB)
INFO: pip is still looking at multiple versions of tensorflow-intel to determine which version is compatible with other requirements. This could take a while.
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
Collecting keras-core (from keras-nlp>=0.8.0->autokeras)
  Using cached keras_core-0.0.0-py3-none-any.whl.metadata (153 bytes)
Collecting h5py (from keras>=3.0.0->autokeras)
  Using cached h5py-3.11.0-cp39-cp39-win_amd64.whl.metadata (2.5 kB)
  Using cached h5py-3.10.0-cp39-cp39-win_amd64.whl.metadata (2.5 kB)
  Using cached h5py-3.9.0-cp39-cp39-win_amd64.whl.metadata (2.5 kB)
  Using cached h5py-3.8.0-cp39-cp39-win_amd64.whl.metadata (2.5 kB)
  Using cached h5py-3.7.0-cp39-cp39-win_amd64.whl.metadata (1.8 kB)
  Using cached h5py-3.6.0-cp39-cp39-win_amd64.whl.metadata (1.9 kB)
  Using cached h5py-3.5.0-cp39-cp39-win_amd64.whl.metadata (2.0 kB)
  Using cached h5py-3.4.0-cp39-cp39-win_amd64.whl.metadata (2.0 kB)
  Using cached h5py-3.3.0-cp39-cp39-win_amd64.whl.metadata (2.0 kB)
  Using cached h5py-3.2.1-cp39-cp39-win_amd64.whl.metadata (2.0 kB)
  Using cached h5py-3.2.0-cp39-cp39-win_amd64.whl.metadata (2.0 kB)
  Using cached h5py-3.1.0-cp39-cp39-win_amd64.whl.metadata (2.1 kB)
  Using cached h5py-3.0.0-cp39-cp39-win_amd64.whl.metadata (2.1 kB)
Collecting cached-property (from h5py->keras>=3.0.0->autokeras)
  Using cached cached_property-1.5.2-py2.py3-none-any.whl.metadata (11 kB)
Collecting h5py (from keras>=3.0.0->autokeras)
  Using cached h5py-2.10.0.tar.gz (301 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached h5py-2.9.0.tar.gz (287 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached h5py-2.8.0.tar.gz (274 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached h5py-2.7.1.tar.gz (264 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached h5py-2.7.0.tar.gz (256 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached h5py-2.6.0.tar.gz (245 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached h5py-2.5.0.tar.gz (684 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting Cython>=0.17 (from h5py->keras>=3.0.0->autokeras)
  Using cached Cython-3.0.10-cp39-cp39-win_amd64.whl.metadata (3.2 kB)
Collecting h5py (from keras>=3.0.0->autokeras)
  Using cached h5py-2.4.0.tar.gz (172 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
Note: you may need to restart the kernel to use updated packages.
  error: subprocess-exited-with-error
  
  python setup.py egg_info did not run successfully.
  exit code: 1
  
  [6 lines of output]
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\xyz\AppData\Local\Temp\pip-install-llcqb_7t\h5py_bb8445dbae6d4ff1a100a226057a64ed\setup.py", line 24, in <module>
      from distutils.command.build_py \
  ImportError: cannot import name 'build_py_2to3' from 'distutils.command.build_py' (C:\Users\xyz\anaconda3\envs\tensorflow-gpu\lib\site-packages\setuptools\_distutils\command\build_py.py)
  [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Click to add a cell.

Hi @akiroaki, When i tried to install autokeras(Version 2.0.0) using pip in conda environment with tensorflow 2.10, while installing the autokeras the tensorflow has automatically upgraded to 2.16 and autokeras was installed successfully without any error. could you please try with tensorflow 2.16.

Thank You.

I need to use tensorflow version <2.11.
Eventually I installed autokeras successfully with Python version 3.10, but thank you for the reply!