【发布时间】:2020-10-13 09:38:02
【问题描述】:
我正在尝试安装 keras-bert,如下所述:BERT from R。本教程展示了如何使用 Keras 从 R 加载和训练 BERT 模型。
但是,当我在 Anaconda 提示符 (Windows) 中运行时:
conda install keras-bert
我收到以下错误:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
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-bert
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/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.
我也导航到https://anaconda.org,搜索keras-bert,但没有找到适合此搜索的项目。
我也尝试过:
python3 -m pip install keras-bert
我没有得到任何输出:
(base) C:\Users\Standard>python3 -m pip install keras-bert
(base) C:\Users\Standard>
但是当我去检查是否安装了keras-bert时,使用R命令
reticulate::py_module_available('keras_bert')
我得到了:
[1] FALSE
【问题讨论】: