Hello DeepLabCut Community,
I am trying to install DeepLabCut on my macOS M1 machine, but I am running into some issues during the installation process. I would greatly appreciate any help or suggestions to resolve this issue.
System Information
- OS: macOS M1 Pro
- DeepLabCut Version: 2.3.5
- Python Version: 3.8.17 (Conda environment)
- Anaconda Version: 3
Steps to Reproduce
- Created a new Conda environment using the
DEEPLABCUT.yaml
file:
% conda env create -f DEEPLABCUT.yaml
Error Message
Here's the relevant part of the error log:
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
ld: library not found for -lhdf5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
... (trimmed)
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.
failed
CondaEnvException: Pip failed
The specific issue appears to be related to the HDF5 library not being found during the installation (ld: library not found for -lhdf5
).
Troubleshooting Attempted
- Checked if HDF5 is installed (it is)
- Attempted to set
HDF5_DIR
environment variable - Ensured all prerequisites and dependencies are installed
However, the issue persists. Has anyone encountered this issue before, or does anyone have suggestions for resolving it? Your help would be greatly appreciated!
Thank you in advance!
Best regards,