模块未找到错误:没有名为"keras_preprocessing"的模块

taor4pac  于 2023-02-16  发布在  其他
关注(0)|答案(2)|浏览(262)

我尝试在Google Colab上使用Tensorflow 2.0实现YOLO 3对象检测: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.

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

fykwrbwg

fykwrbwg1#

Keras Preprocessing软件包的Anaconda存储库中,可以使用以下命令安装它

conda install -c conda-forge keras-preprocessing

即用-代替_并选择conda-forge信道。

4nkexdtk

4nkexdtk2#

试试这个

pip install Keras-Preprocessing

相关问题