-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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
> reticulate::py_config()
python: /usr/local/bin/python
libpython: /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6.so
pythonhome: //usr://usr
version: 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0]
numpy: /usr/local/lib/python3.6/dist-packages/numpy
numpy_version: 1.18.1
tensorflow: /usr/local/lib/python3.6/dist-packages/tensorflow
In the Jupyter notebook this code returns the same path:
import sys
from PIL import Image
sys.modules['Image'] = Image
from PIL import Image
print(Image.__file__)
import Image
print(Image.__file__)
So it seems to be an issue with rstudio not finding the pillow install somehow.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels