使用网状结构在 R 中安装 python 包时出错

Error when installing python package in R using reticulate

我正在尝试访问 S&P Capital IQ 的 Python API 以提取报告数据。但是,我完全不熟悉 Python 的工作原理(之前只使用过 R),所以我希望得到一些帮助,了解如何使用 [=14= 在 R 中安装 capiq_excel 包].对于某些背景,我有一个 S&P Capital IQ 订阅,并且我的计算机上加载了 excel 插件,这显然是让它工作的依赖项。

当我尝试使用以下代码在 R 中安装包时

library(reticulate)
py_install(capiq_excel)

我收到以下错误

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

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

  - capiq_excel

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - 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

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.


Error: one or more Python packages failed to install [error code 1]

我是不是完全错了?安装包后,我想使用 API 在 R 中创建数据框。可以在此处找到 capiq_excel 包的文档 (https://nickderobertis.github.io/capiq-excel-downloader-py/tutorial.html#overview)

TIA

第一次尝试

图书馆(网状) py_install("capiq_excel")

如果上面的代码不起作用试试这个

install_miniconda("capiq_excel")