无法写入 y/n 以继续在 kaggle 中安装库

Unable to write y/n to proceed in the installation of a library in kaggle

我想在 kaggle 中安装 gmaps 库,不幸的是,当写入 !conda install -c conda-forge gmaps 时,安装开始但要求我继续 y/n 而没有输入来写入 y 或 n。

Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /opt/conda

  added / updated specs:
    - gmaps


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    certifi-2019.11.28         |           py36_0         149 KB  conda-forge
    conda-4.8.2                |           py36_0         3.0 MB  conda-forge
    geojson-2.5.0              |             py_0          15 KB  conda-forge
    gmaps-0.9.0                |             py_0         1.7 MB  conda-forge
    ------------------------------------------------------------
                                           Total:         4.9 MB

The following NEW packages will be INSTALLED:

  geojson            conda-forge/noarch::geojson-2.5.0-py_0
  gmaps              conda-forge/noarch::gmaps-0.9.0-py_0

The following packages will be SUPERSEDED by a higher-priority channel:

  ca-certificates     pkgs/main::ca-certificates-2020.1.1-0 --> conda-forge::ca-certificates-2019.11.28-hecc5488_0
  certifi                                         pkgs/main --> conda-forge
  conda                                           pkgs/main --> conda-forge
  openssl              pkgs/main::openssl-1.0.2u-h7b6447c_0 --> conda-forge::openssl-1.0.2u-h516909a_0


Proceed ([y]/n)?

我查看了 Anaconda 网站常见问题解答,并找到了专门针对此问题的答案。 You can check the article in here

请务必提供 -y 以在安装提示中指定是,因为您无法在 运行 时向命令提交输入。

在我的例子中:

!conda install -c conda-forge gmaps -y