facebookresearch / ImageBind

ImageBind One Embedding Space to Bind Them All
Other
8.06k stars 733 forks source link

Running into lots of dependency issues #116

Open jackyliang opened 1 month ago

jackyliang commented 1 month ago

I am trying to use ImageBind on my M2 Mac using Conda, and I have so far run into a ton of dependency issues, including the following. Some I was able to kind of fix, such as VTK, GEOS, and Cartopy, but I could not so far get the torch==1.13 error to go away

Summary of Dependency Issues

  1. VTK Dependency:

    • Error: Could not find a version that satisfies the requirement vtk
    • Details: No matching distribution found for vtk during installation.
  2. GEOS Library Missing:

    • Error: fatal error: 'geos_c.h' file not found
    • Details: cartopy installation failed due to missing GEOS library.
  3. Torch Version Compatibility:

    • Error: Could not find a version that satisfies the requirement torch==1.13.0
    • Details: torch==1.13.0 is not available, causing installation issues.
  4. Build Failure for Cartopy:

    • Error: error: command '/usr/bin/clang' failed with exit code 1
    • Details: Failed to build wheel for cartopy due to missing dependencies.

The specific error for torch==1.13.0 looks like this

ERROR: Could not find a version that satisfies the requirement torch==1.13.0+cu116 (from imagebind) (from versions: 2.2.0, 2.2.1, 2.2.2, 2.3.0)
ERROR: No matching distribution found for torch==1.13.0
ChrisjanWust commented 3 weeks ago

For PyTorch issues: try installing with python 3.8. I also had the exact same problem and downgrading to 3.8 solved it for me.

ChrisjanWust commented 3 weeks ago

Okay, so Python 3.8 had no compatible VTK versions on my machine (M1 Mac, 64bit Python).

Python 3.9 worked out of the box - supporting both the old version of torch and vtk installed just fine.