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
Dear Nabriis,
Dependency management in tricky in this scenario since rstudio is running with the ubuntu user but the installation is carried out as root. I think that you have two options:
Change the Dockerfile adding the new dependencies:
For that modify the line that reads:
RUN pip install rpy2
to:
RUN pip install rpy2 pillow
Create again the image using this new Dockerfile and push it to Dockerhub. This option will persist the changes and it is my favorite.
Get a bash shell in the container and then run as root:
pip install pillow
However, this option won't persist your changes and you have to run it every time that you restart the container.
Let me know if that solve your problem.
Hi using this image for R on windows WSL 2 I seem to run into an issue with "Pillow" not being installed when running some ML code in rstudio.
I tried
reticulate::py_install('pillow',pip = TRUE)
but get the following error
Error: could not find a Python environment for /usr/local/bin/python
Even though we have
In the Jupyter notebook this code returns the same path:
So it seems to be an issue with rstudio not finding the pillow install somehow.
The text was updated successfully, but these errors were encountered: