geekyutao / Inpaint-Anything

Inpaint anything using Segment Anything and inpainting models.
Apache License 2.0
6.4k stars 525 forks source link

scikit-image not installable #114

Open alexbercik opened 11 months ago

alexbercik commented 11 months ago

I get the following error when trying to install python -m pip install -r lama/requirements.txt I have played with modifying the version of scikit-image but there always seems to be some sort of dependency issue. Any ideas? And yes, numpy is absolutely already installed, I don't know why it says there is no module named numpy.

Collecting scikit-image==0.17.2 (from -r lama/requirements.txt (line 5))
  Using cached scikit-image-0.17.2.tar.gz (29.8 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      Traceback (most recent call last):
        File "/Users/alex/python_environments/AI/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/alex/python_environments/AI/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/alex/python_environments/AI/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/y9/n2cnwrys7qv99mw3t8s22vpw0000gn/T/pip-build-env-tjgdc62x/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/y9/n2cnwrys7qv99mw3t8s22vpw0000gn/T/pip-build-env-tjgdc62x/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/y9/n2cnwrys7qv99mw3t8s22vpw0000gn/T/pip-build-env-tjgdc62x/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/private/var/folders/y9/n2cnwrys7qv99mw3t8s22vpw0000gn/T/pip-build-env-tjgdc62x/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 234, in <module>
        File "<string>", line 58, in openmp_build_ext
      ModuleNotFoundError: No module named 'numpy'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.