我试着用R中的网状词
在bash中,我得到:
which python
# ~/.pyenv/shims/python
但是当我把它放在R里的时候,我从来没有让它工作过。有人能帮我理解为什么吗?你知道吗
library(reticulate)
my_python='~/.pyenv/shims/python'
use_python(my_python, required = T) # throws no message
py_config() #throws error below
#Error in initialize_python(required_module, use_environment) :
# Python shared library not found, Python bindings not loaded.
注意,我确保了~/pyenv/shims/
在$PATH
中。你知道吗
非常感谢你的帮助
我也面临着同样的问题,经过一番寻找,我偶然发现了这个问题。希望它能有所帮助:https://github.com/rstudio/reticulate/issues/291#issuecomment-437143751
从同一条线的另一张海报上: “您需要使用用动态可加载 库(.dylib)。R无法链接到静态Python库。“
相关问题 更多 >
编程相关推荐