You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import numpy as np
import pandas as pd
import statsmodels.api as sm
import statsmodels.formula.api as smf
import matplotlib.pyplot as plt
I receive the following error message:
processing file: Sin-título.rmarkdown
|.......................................... | 80% [unnamed-chunk-2]
Quitting from lines 22-27 [unnamed-chunk-2] (Sin-título.rmarkdown)
Error in py_call_impl():
! ModuleNotFoundError: No module named 'statsmodels'
Run reticulate::py_last_error() for details.
Backtrace:
If a module is importable when working interactively in the console but not when kintting a document, then the most likely reason is that a different python installation is being selected in the different context. The most likely reason for that is that the working directory changes when knitting, and then any configuration that depends on files in the current working directory ( .Rprofile, .Renviron, ./venv, etc.), no longer applies. In that case you will need to apply the appropriate config from another directory, e.g. with readRenviron() or source() or use_virtualenv(here::here("venv"))
I try to execute the following qmd file:
title: "Prueba"
author: "JRH"
format: html
editor: visual
R
Python
I receive the following error message:
processing file: Sin-título.rmarkdown
|.......................................... | 80% [unnamed-chunk-2]
Quitting from lines 22-27 [unnamed-chunk-2] (Sin-título.rmarkdown)
Error in
py_call_impl()
:! ModuleNotFoundError: No module named 'statsmodels'
Run
reticulate::py_last_error()
for details.Backtrace:
...
Execution halted
But individually, in R and Python (repl_python) both scripts function.
The text was updated successfully, but these errors were encountered: