Cannot run python script in Rstudio

reticulate uses python 2.7 by default, so the libraries you use must be installed for python 2.7 or you have to specify the python version (or virtual environment) that you are using.

If that doesn't solve your problem, could you please prepare a reproducible example (reprex) illustrating your issue? A reprex makes it much easier for others to understand your issue and figure out how to help.