ModuleNotFoundError: No module named 'wget'

#59
by VladyMarketer - opened

ModuleNotFoundError Traceback (most recent call last)

in
3 from IPython.display import clear_output
4 from IPython.utils import capture
----> 5 import wget
6
7 #@markdown - Skip this cell if you are loading a previous session

ModuleNotFoundError: No module named 'wget'

VladyMarketer changed discussion status to closed
VladyMarketer changed discussion status to open

Hello, what I show next I found in a comment of a Youtuber video "Dot CSV", thanks to "El Tío Lucas", it worked for me.


CLARIFICATION: This is not my responsibility, I have compiled different messages left by other users in the comments and I have put all the steps together in a single message for those who have the errors in steps 3 and 6.

BECAUSE IT DOES NOT WORK?
The Hugging Face team apparently updated the notebook and now there isn't a part that appears in the video but we don't. Specifically in step 2, when installing the dependencies.

ARRANGEMENT
In step 2 completely replace the code with this other:

#@markdown # Dependencies

from IPython.utils import capture
from subprocess import getoutput
import time

print('Installing dependencies...')
with capture.capture_output() as cap:
%cd /content/
!pip install -q accelerate==0.12.0
for i in range(1,6):
!wget -q "https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dependencies/Dependencies.{i}"
!mv "Dependencies.{i}" "Dependencies.7z.00{i}"
!7z x -y Dependencies.7z.001
time.sleep(2)
%cd /content/usr/local/lib/python3.8/dist-packages
!rm -r PIL Pillow.libs Pillow-9.3.0.dist-info
!cp -r /content/usr/local/lib/python3.8/dist-packages /usr/local/lib/python3.8/
!rm -r /content/usr
%cd /content
for i in range(1,6):
!rm "Dependencies.7z.00{i}"
!pip uninstall -y diffusers
!git clone --branch updt https://github.com/TheLastBen/diffusers
!pip install -q /content/diffusers
s = getoutput('nvidia-smi')
if "A100" in s:
!wget https://github.com/TheLastBen/fast-stable-diffusion/raw/main/precompiled/A100/A100
%cd /usr/local/lib/python3.8/dist-packages/xformers
!7z x -y /content/A100
!rm /content/A100
%cd /content/
print('Ahora funciona, dale gracias a eltiolucas y a jorgebarrios9648 ')

-------ONCE THAT IS FINISHED WE GO TO STEP 3
1- Put in Show Code
2- Put "!pip install wget" before the "import wget" line

*Don't forget to paste the Hugging Face Token

And that's it, now in step 6 it should work correctly. I hope it works for everyone!

Sign up or log in to comment