Bug: Installation failed
MarhsallLotte opened this issue · 2 comments
Bug Description
I created a new environment under Anaconda with Python 3.10.9 and jupyter notebook installed. Then I followed the instruction to install "autokeras" after "keras-tuner" with pip. However, I got an error message with "subprocess-exited-with-error", where the error exists in "ImportError: cannot import name 'MutableMapping' from 'collections'".
Bug Reproduction
Code for reproducing the bug:
- Create a new environment in anaconda with Python 3.10.9, and activate the environment.
- pip3 install keras-tuner --upgrade
- pip3 install autokeras
Expected Behavior
- Long attempt in "Collecting tensorflow>=2.8.0", where it collects all the versions from 2.10.1 to 2.8.0
- Long attempt in "Collecting requests", where it collects all the versions from "requests-2.28.1-py3-none-any.whl" to "requests-1.2.3.tar.gz"
- Preparing metadata (setup.py) ... error
- error: subprocess-exited-with-error
- Error message: "ImportError: cannot import name 'MutableMapping' from 'collections'"
Setup Details
Include the details about the versions of:
- New installation of Anaconda (as of 4/2/2023)
- New Environment build under Anaconda, with jupyter notebook.
- Windows 10 Pro
- Python 3.10.9
- autokeras: autokeras-1.1.0
- Keras-tuner: keras_tuner-1.2.0
- TensorFlow: tensorflow-2.11
- pandas: pandas-1.5.3
Additional context
The full error code: https://drive.google.com/file/d/1wu8uoDfstb35FLEkV9-fjkLFoWX9_rQM/view?usp=sharing
Kind of fix it by stating the TensorFlow version. In my case, I stated to install tensorflow==2.11, then it allow me to install the AutoKeras library.
My TensorFlow version==2.11. But I also encountered the same mistake, how to solve it?