【发布时间】:2019-02-06 16:34:50
【问题描述】:
我给出了以下命令
图书馆(网状)
py_install("熊猫")
在 RStudio 中安装 python 包时出现错误:
Solving environment: ...working... failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/noarch/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/noarch/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
Error: Error 1 occurred creating conda environment r-reticulate
请帮助解决此错误。
【问题讨论】:
-
你到底在运行什么命令?
-
看起来像是某些 SSL 库的问题。什么是操作系统?
-
@heisenbug47,我怀疑重点是在 RStudio 中安装 python 包(使用 R 的
reticulate包),而不是 R 包 . -
@r2evans,
reticulate包用于在 R Studio 或 R 代码中执行 python 代码,据我所知,它不用于安装任何包。它在 R.Refer this 中提供了 python 环境以获取更多详细信息。如果使用 anconda,则需要像往常一样通过 pip 或 conda 安装 Python 包。要在 R 中使用它,请使用reticulate并提及安装 python 包的正确路径。 -
嗯?我是在回复你之前的评论。既然您似乎知道需要通过
pip或conda安装python 包,那您为什么建议install.packages()?
标签: r