![]() I am not a regular Python user, only started learning now, and I am also not very good with paths, so I would appreciate step-by-step answers. ![]() Is there some kind of a config file I could edit? I would like to change the path that is used when a Python script is run from within RStudio. when I have code that combines R and Python, in separate chunks. I have tried to use the following command, run from an R script: use_python("/Library/Frameworks/amework/Versions/3.7/bin/python3")īut it doesn't do anything - my naive understanding is that this command is useful within an R markdown file, i.e. So, I would like to tell RStudio to always look in this path to find Python 3.7. ![]() Library/Frameworks/amework/Versions/3.7/bin/python3 I would like to permanently change where the reticulate package looks for Python.įrom the Terminal I know: $ python -version Reticulate 1.12 REPL - A Python interpreter in R. I then see what happens in the console - the reticulate package is called: reticulate::repl_python() I type something in: import pandas as pdĪnd execute (by clicking cmd+enter). I open RStudio, and create a new python script. RStudio reticulate package uses Python from this path: "/usr/bin/python"īut I want it to use python from this path - always, as a default: "/Library/Frameworks/amework/Versions/3.7/bin/python3" I am aware that similar questions have been asked before, but I either don't understand the answers, or there aren't any so I decided to describe my problem in as much detail as possible.
0 Comments
Leave a Reply. |