title: "Python in R"
output: html_document
version: RStudio 2021.09.0 Build 351 "Ghost Orchid"
OS: macOS Monterey 12.0.1
knitr::opts_chunk$set(echo = TRUE)
library (reticulate)
repl_python()
reticulate::py_config()
pd <- import("pandas")
pp<- import("pandas-profiling")
plt <- import("matplotlib.pyplot")
np <- import("numpy")
Error in py_module_import(module, convert = convert) : ModuleNotFoundError: No module named 'pandas-profiling'
3.stop(structure(list(message = "ModuleNotFoundError: No module named 'pandas-profiling'", call = py_module_import(module, convert = convert), cppstack = structure(list( file = "", line = -1L, stack = c("1 reticulate.so 0x0000000105fffb6e _ZN4Rcpp9exceptionC2EPKcb + 222", "2 reticulate.so 0x0000000106008975 _ZN4Rcpp4stopERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE + 53", ... 2.py_module_import(module, convert = convert) 1.import("pandas-profiling")
First of all, I am a novice at these things. I'm trying to run python in R. Except for pandas-profiling package, everything is loading fine. Can someone suggest me a work around for this one? What am I missing here?