[英]Using python modules in R reticulate with hyphens?
I'm trying to import a module using the reticulate library
in R
, however the library fails to import because it has a hyphen in it. 我正在尝试使用
R
的reticulate library
导入模块,但是该库无法导入,因为其中包含连字符。 In specific, it is the bitmex-ws
module. 具体来说,它是
bitmex-ws
模块。 py_install("bitmex-ws")
works no problem, but the error is when trying to import, I receive a module not found error
. py_install("bitmex-ws")
没问题,但是错误是在尝试导入时,我收到module not found error
的module not found error
。
You may want import bitmex_websocket
. 您可能需要
import bitmex_websocket
。
See example usage here: https://pypi.org/project/bitmex-ws/ 在此处查看示例用法: https : //pypi.org/project/bitmex-ws/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.