Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
304 views
in Technique[技术] by (71.8m points)

r - Reticulate python not recognizing local python : Error: Python shared library not found, Python bindings not loaded

I have downloaded the python tar and extracted locally in linux ubuntu /app folder, When I configure this python using the R reticulate I get the error message " Error: Python shared library not found, Python bindings not loaded. Use reticulate::install_miniconda() if you'd like to install a Miniconda Python environment."

Here is the code I am running on R


> Python_Script_version<<-paste0("/app/bin/Python-3.9.1")
> Sys.setenv(RETICULATE_PYTHON= Python_Script_version)
> reticulate ::use_python(Python_Script_version, required = TRUE)

> Sys.which("python")
                               python 
"/app/bin/Python-3.9.1/python" 

> library(reticulate)
> py_config()
Error in py_config() : could not find function "py_config"
> reticulate::py_config()
Error: Python shared library not found, Python bindings not loaded.
Use reticulate::install_miniconda() if you'd like to install a Miniconda Python environment.

Thank you for your time and response.

question from:https://stackoverflow.com/questions/65935995/reticulate-python-not-recognizing-local-python-error-python-shared-library-no

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You need to extract the python files in the same directory as your python and r scripts


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...