Pyton in Rstudion

hello everybody I have this errors when in run a simple python basch.

system("python hello.py")
Warning message:
running command 'python hello.py' had status 127

Status code 127 is a command not found error, which means you haven't given the system enough information to know where the engine or script exists.

What's your setup? Are you in the terminal inside RStudio, running this on its own? Is it part of a project?

You might want to look at the reticulate docs for help with Python configuration here:
https://rstudio.github.io/reticulate/articles/versions.html

If possible, could you turn this into a self-contained reprex (short for minimal reproducible example)? It will help us help you if we can be sure we're all working with/looking at the same stuff.

If you've never heard of a reprex before, you might want to start by reading the tidyverse.org help page. The reprex dos and don'ts are also useful.

3 Likes