stable-diffusion
stable-diffusion copied to clipboard
Module Not Found Error imwatermark
This error is on my mac, is it only on my side ?

run command with conda prompt
I'm getting this same error. I tried pip install imwatermark but it didn't help. I also tried conda install imwatermark but it does not find any such package.
PS C:\Users\dev_w\Documents\GitHub\stable-diffusion> pip install imwatermark
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
Requirement already satisfied: imwatermark in c:\python39\lib\site-packages (0.0.2)
Requirement already satisfied: numpy in c:\python39\lib\site-packages (from imwatermark) (1.23.5)
Requirement already satisfied: imhist in c:\python39\lib\site-packages (from imwatermark) (0.0.4)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
pip install invisible-watermark resolved the error.
pip install invisible-watermarkresolved the error.
and then youll get dependency err
pip install invisible-watermarkresolved the error.and then youll get dependency err
Then what should I do?
pip install invisible-watermarkresolved the error.and then youll get dependency err
Yeah I fear welcome to the world of Python. Where everybody will tell you to 'solve' that issue with a virtual environment :/ I got dependency stuff printed out in Google Colab for components like Tensorflow. But invisible-watermark was also the very thing missing for me there, so that worked.
for those who get the same error, here is the detailed solution: windows solution: Win+R "cmd" and hit enter, command line interface will pop up, type cd directory "stable-diffusion-webui\venv\Scripts", maybe you need to change disk fist, type "d:" first if your installation is in D disk then type "activate" and hit enter, this will activate your python env used for SD, then type "python -m pip install invisible-watermark" and hit enter, wait till it ends. after all this, the lib is installed in your venv, and now do as normal, double-click "webui-user.bat" to go
for linux: almost the same, activate your venv first, then run "python -m pip install invisible-watermark", wait till it ends, problem solved.