Error when setting up reticulate

I am trying to set up reticulate on my computer and am having a hard time. I am following the steps outlined in " Python and R for the Modern Data Scientist: The Best of Both Worlds"

In the console:


I have then gone to Tools > Global Option > Python and selected the "/r-miniconda/envs/modern_data/" as my Interpreter

But when I fun the following code (just importing a Python package, but its the same error for any Python chunk) I get an error:

import pandas as pd


Error: unexpected symbol in "import pandas"
Error in python_config(python_version, required_module, forced = "use_python function") : Error 1 occurred running C:/Users/User1/AppData/Local/r-miniconda/envs/modern_data/python.exe

I have also tried:


And when I check:


It returns FALSE

I'm not sure what the next steps are for trouble shooting this, but would appreciate some help.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.