-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup script fails on Arch Linux: ModuleNotFoundError: No module named 'pkg_resources' #3050
Comments
Are you using python version higher than 3.10.9 but lower than 3.11.0 in the venv? |
Hey, I am not sure. How would I configure what python version is being used in the venv? Default Python version on the system is 3.13.1 I have this in /usr/bin:
Maybe setup.sh is not using 3.10 for the venv? How would I configure that? |
pkg_resources is part of python's |
Sorry I have no idea about the inner workings of python. I am lost here. Could you provide instructions on how to install the required packages? I have python-pip and python-env installed. Some tutorial suggested it. But I can't make it work. |
I'm going to suggest using miniconda since it avoids having to compile from source packages. Refer to the install instructions for Miniconda here but basically, this... mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm ~/miniconda3/miniconda.sh Side note: The above commands will make a directory called Now set up conda environment with python 3.10 source ~/miniconda3/bin/activate
conda create -n py310 python=3.10.16
conda activate py310 And do the setup for kohya_ss as usual. I recommend deleting the existing venv if you have one present. cd kohya_ss
rm -fr venv
./setup.sh If that all works out, start the GUI. ./gui.sh I believe there will be additional things to set up, but see if you can get the web GUI to run. |
Thank you very much! I will try that out and report back. |
This worked! I was able to reach the GUI. Did not have time to train yet. Thank you very much for your help. I guess this will help a lot of people on Arch! |
This is what I get when trying to run the setup script on a current Arch linux:
Any advice on what to do? Thank you!
The text was updated successfully, but these errors were encountered: