Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-cuda installation error #29

Open
kunleng opened this issue Oct 14, 2024 · 0 comments
Open

Non-cuda installation error #29

kunleng opened this issue Oct 14, 2024 · 0 comments

Comments

@kunleng
Copy link

kunleng commented Oct 14, 2024

Hi there,

Thanks for making a great tool for folks to easily implement SAM! I am using a MacBook Pro (Intel processor) and ran into the error below on installation. Would appreciate any assistance!

Best,
Kun
UCSF

(samapi) kunleng@Kuns-MacBook-Pro ~ % python -m pip install git+https://github.com/ksugar/samapi.git
Collecting git+https://github.com/ksugar/samapi.git
Cloning https://github.com/ksugar/samapi.git to /private/var/folders/1v/tq470sc561vbjlwxjph3kbmm0000gn/T/pip-req-build-lmosy9s0
Running command git clone --filter=blob:none --quiet https://github.com/ksugar/samapi.git /private/var/folders/1v/tq470sc561vbjlwxjph3kbmm0000gn/T/pip-req-build-lmosy9s0
Resolved https://github.com/ksugar/samapi.git to commit 914703a
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting mobile_sam@ git+https://github.com/ksugar/MobileSAM.git (from samapi==0.6.1)
Cloning https://github.com/ksugar/MobileSAM.git to /private/var/folders/1v/tq470sc561vbjlwxjph3kbmm0000gn/T/pip-install-ybt1e0uw/mobile-sam_3ae06ccdfc4042fbb1a09b3827480bb0
Running command git clone --filter=blob:none --quiet https://github.com/ksugar/MobileSAM.git /private/var/folders/1v/tq470sc561vbjlwxjph3kbmm0000gn/T/pip-install-ybt1e0uw/mobile-sam_3ae06ccdfc4042fbb1a09b3827480bb0
Resolved https://github.com/ksugar/MobileSAM.git to commit 41ac534a20a4779fab4f8c84e158ca7c7b40ff26
Preparing metadata (setup.py) ... done
Collecting sam2@ git+https://github.com/ksugar/segment-anything-2@support-non-cuda (from samapi==0.6.1)
Cloning https://github.com/ksugar/segment-anything-2 (to revision support-non-cuda) to /private/var/folders/1v/tq470sc561vbjlwxjph3kbmm0000gn/T/pip-install-ybt1e0uw/sam2_86192826f71646b68cc6ccfc01581ad2
Running command git clone --filter=blob:none --quiet https://github.com/ksugar/segment-anything-2 /private/var/folders/1v/tq470sc561vbjlwxjph3kbmm0000gn/T/pip-install-ybt1e0uw/sam2_86192826f71646b68cc6ccfc01581ad2
Running command git checkout -b support-non-cuda --track origin/support-non-cuda
Switched to a new branch 'support-non-cuda'
branch 'support-non-cuda' set up to track 'origin/support-non-cuda'.
Resolved https://github.com/ksugar/segment-anything-2 to commit 00ff21e508132e3b351d8c2c4b713970b03df001
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [4 lines of output]
Collecting setuptools>=61.0
Downloading setuptools-75.1.0-py3-none-any.whl.metadata (6.9 kB)
ERROR: Could not find a version that satisfies the requirement torch>=2.3.1 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch>=2.3.1
[end of output]

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

× pip subprocess to install build dependencies 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant