如何解决使用网纹在R中安装python软件包时出错
我正在尝试访问S&P Capital IQ的Python API来提取报告数据。但是,我完全不了解Python的工作方式(仅在以前使用R),因此希望获得一些有关如何使用capiq_excel
在R中安装reticulate
软件包的帮助。在某些背景下,我有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”)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。