rstudio / reticulate

R Interface to Python
https://rstudio.github.io/reticulate
Apache License 2.0
1.67k stars 327 forks source link

Error in reticulate::use_python(): failed to initialize requested version of Python #1627

Open MrClearLovez opened 3 months ago

MrClearLovez commented 3 months ago

Dear Developer: When I run use_python function in linux,I got this error:

this is my environment: image

I conda environment is this:

and my IDE is jupyter notebook.Sincere request you to help me to solve this problem!

MrClearLovez commented 3 months ago

image

and I want use_python("/home/data/t090313/miniconda3/envs/python36/bin/python")

I got this error: image

t-kalinowski commented 3 months ago

It looks for one reason or another, Jupyter is not giving you the opportunity to see the cause for why initialization failed.

Can you try outside of Jupyter, to see the full error message, or to see if Jupyter is somehow the cause of the issue?

Also, Python 3.6 is quite old and EOL. I'd strongly recommend using a version of Python that is currently supported (i.e., v3.9+). https://devguide.python.org/versions/