I want to how to install module


Repl link:

from rembg import remove
from PIL import Image

image_input = Image.open(input_path)
output = remove(image_input)

How to install pip install rembg

Hi @fdl022005 , welcome to the forums!
Try entering poetry add rembg into the Shell.
Hope this helps!

1 Like

You can either enter pip install rembg or poetry add rembg in shell
Or if you have no idea how to open shell, I don’t know how to describe it here without any images, so I just gonna tell you how to run shell with python (cause I am lazy)
So you can just run this python script

import os
os.system('pip install rembg')
os.system('poetry add rembg')