简体   繁体   English

在R中使用python模块与连字符相连吗?

[英]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. 我正在尝试使用Rreticulate 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 errormodule 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM