如何解决使用 reticulate 和 python 依赖项的 R 包的 Github 操作工作流
我正在尝试安装 python
依赖项,以便在使用 reticulate
(特别是转换 networkx
对象到 iGraph
github
对象 via json)。我从 reticulate
's github-action
开始工作,但在 R
(特别是 R
)内构建时陷入困境,看来 linux
可能是安装 Python 依赖项的最安全方式。
ubuntu
我对 conda
和 Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
#
# To activate this environment,use
#
# $ conda activate r-reticulate
#
# To deactivate an active environment,use
#
# $ conda deactivate
Error: Error: package or namespace load failed for ‘py2Rgraphs’:
.onLoad failed in loadNamespace() for 'py2Rgraphs',details:
call: NULL
error: could not find a Python environment for /usr/bin/python3
Error: Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/runner/work/py2Rgraphs/py2Rgraphs/check/py2Rgraphs.Rcheck/py2Rgraphs’
1 error ✖ | 0 warnings ✔ | 1 note ✖
也有问题,但想先修复 macOS
构建。
据我了解,在 windows
上启用需要 linux
的测试将特别困难,因此至少在 python
存储库中实现自动化似乎是一个至关重要的先决条件。我至少可以确认测试在本地和一些同事的计算机上都通过了。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。