0

Sam 3: numpy dependencies conflict. Versions are incompatible

@cinemazverevposted 7/23/2026, 8:18:58 AM·0 replies

Every new update i face the numpy version conflict, and every time i need to downgrade numpy

Requirement already satisfied: timm>=1.0.17 in .\app\services\sam\env\Lib\site-packages (from -r app/services/sam/requirements.txt (line 6)) (1.0.28)
Collecting numpy>=2 (from -r app/services/sam/requirements.txt (line 7))
  Using cached numpy-2.5.1-cp312-cp312-win_amd64.whl.metadata (6.6 kB)

So, it strats to update from requirements.txt which is >=2 - but this versions are incompatible:

Using cached numpy-2.2.6-cp312-cp312-win_amd64.whl (12.6 MB)
Installing collected packages: numpy
  Attempting uninstall: numpy
    Found existing installation: numpy 1.26.4
    Uninstalling numpy-1.26.4:
      Successfully uninstalled numpy-1.26.4

██ Detached from Shell 23a48356-c9ce-468d-b1f3-d0b8197ee179

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sam3 0.1.0 requires numpy<2,>=1.26, but you have numpy 2.2.6 which is incompatible.
Successfully installed numpy-2.2.6

And again i need to downgrade to Numpy 1.26.4 manually.

The requirements.txt file sets the setting to numpy>=2, which conflicts with the requirements of the sam3 0.1.0 package (numpy<2,>=1.26 is expected).
Should the requirements.txt line 7
numpy>=2
be replaced with
numpy==1.26.4
to avoid this conflict in future?

Windows 11, NVIDIA GeForce RTX 3080 Ti Laptop GPU (16GB VRAM),
32GB RAM, Intel 12th Gen Core i9

Replies (0)
Up to 10 files, 25MB each. Images are optimized; GIFs -> MP4; videos 720p (max 120s).