0

I'm trying to make script file which is going to read some image and downscale it.

This is my shell script file

#!/usr/bin/env python3
#pip install Pillow

from PIL import Image

image = Image.open('some image path here')
image.resize((512, 512))

I imported 'PIL' library with pip but if I run this shell script file it doesn't work.

The Error says "No module named PIL".

I know what the error is meaning about. But how can I fix this problem?

Wallaby
  • 1
  • 2
  • https://stackoverflow.com/questions/12332975/installing-python-module-within-code – LMC Apr 21 '22 at 19:10

0 Answers0