I use Stable Diffusion and AUTOMATIC1111 on a local Linux machine and a local installation. From time to time I install new extensions in AUTOMATIC1111 to work with them or just to test them. When I started the local Stable Diffusion Server after such an Installation, I noticed that a Python module was missing. This missing Python module is called insightface. As usual, I tried to install this module in the usual way for Python. However, this is not successful as Stable Diffusion uses a virtual Python environment.
Normally one will do this using Python:
pip install insightface
Then the Python module insightface is installed but outside of venv (virtual Python environment).
To install the Python module for use with AUTOMATIC1111, we can do this:
Go to stable-diffusion-webui directory
source ./venv/bin/activate
cd repositories
pip install insightface
Now the warning starting Stable Diffusion is gone.
The command under item 2 changes into the Python virtual environment in which Stable Diffusion is running. This is the trick, when a Python module must be installed.
Have a nice day. Be inspired.