jhc13 / taggui

Tag manager and captioner for image datasets
GNU General Public License v3.0
495 stars 26 forks source link

ModuleNotFoundError: No module named 'packaging' #210

Closed geroldmeisinger closed 2 weeks ago

geroldmeisinger commented 2 weeks ago

from fresh git clone (debian linux)

pip install -r requirements.txt

Collecting flash-attn==2.5.9.post1
  Using cached flash_attn-2.5.9.post1.tar.gz (2.6 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-zds7jrqp/flash-attn_78a63c628fd94a3aa452c42a7bf8af3e/setup.py", line 9, in <module>
          from packaging.version import parse, Version
      ModuleNotFoundError: No module named 'packaging'
      [end of output]
eraser851 commented 2 weeks ago

I had this problem. Comment out the flash-attn line in the requirements, then install separately.

pip install packaging (and maybe wheel) then pip install flash-attn --no-build-isolation