ModuleNotFoundError: No module named 'keras_preprocessing'

ModuleNotFoundError: No module named 'keras_preprocessing'

我正在尝试在 google colab 上使用 tensorflow 2.0 实现 YOLO3 对象检测:https://github.com/theAIGuysCode/Object-Detection-API

对于这一行:

!python3 /content/Object-Detection-API/load_weights.py

我遇到了这个错误:

ModuleNotFoundError: No module named 'keras_preprocessing'

我尝试使用此命令安装 'keras_preprocessing':

!conda install keras_preprocessing

然后我遇到了这个错误:

Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - keras_preprocessing

Current channels:

  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

请帮我解决同样的问题! 谢谢!

Keras Preprocessing 软件包的 Anaconda 存储库中,您可以使用

安装它
conda install -c conda-forge keras-preprocessing

也就是说,使用 - 而不是 _ 并选择 conda-forge 频道。