bmaltais / kohya_ss

Apache License 2.0
8.78k stars 1.14k forks source link

Python3.10 required but Debian "Bookworm" 12.5 only has Python3.11 #2617

Open ttait-vantim opened 1 week ago

ttait-vantim commented 1 week ago

Debian stable "bookworm" no longer includes a a python3.10 package, kohya_ss seems to require that.

~/sd/kohya_ss$ ./setup.sh 
Skipping git operations.
Switching to virtual Python environment.
21:51:54-784299 INFO     Python version is 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]                                                                                                                                                 
21:51:54-791080 ERROR    The current version of python (sys.version_info(major=3, minor=11, micro=2, releaselevel='final', serial=0)) is not appropriate to run Kohya_ss GUI                                                                 
21:51:54-793654 ERROR    The python version needs to be greater or equal to 3.10.9 and less than 3.11.0
cat /etc/debian_version 
12.5
ttait-vantim commented 1 week ago

I was able to use pyenv to install a copy of python3.10 and use that just for kohya_ss without disturbing the debian versions.

ttait-vantim commented 1 week ago

I also ran into the "tkinter" issue doing this method, the solution is to "apt install tk-dev" before installing the new python version, then install kohya_ss.