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

If running pip install -e prompts errors such as missing dependencies, try changing python_requires=">=3.10.0" in setup.py to 3.9.0 #87

Open
seanwhen opened this issue Aug 1, 2024 · 2 comments

Comments

@seanwhen
Copy link

seanwhen commented Aug 1, 2024

If running pip install -e prompts an error, such as missing dependencies, try changing python_requires>="3.10.0" to 3.9.0 in setup.py.
That would probably solve most of the problems.

This is roughly Torch and cuda in python

Then
conda create -n sam2 python= 3.9 -y
install pip install -e.

My configuration:
ubuntu22.04
Nvidia4070Tis16GB
cuda 12.4

@mtilal
Copy link

mtilal commented Aug 1, 2024

Didn't work for me

@mahmoodkashmiri
Copy link

mahmoodkashmiri commented Aug 2, 2024

If your environment is following:
Ubuntu: 20.04
Cuda: 11.8

Create a new conda env
conda create -n sam2 python=3.10
Activate ENV
conda activate sam2
Then install deps like this
pip install -e . --verbose --extra-index-url https://download.pytorch.org/whl/cu118

If there is error _C.so: undefined symbol try this

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

No branches or pull requests

4 participants