начал осваивать UV.
Создал папку для нового uv проекта:
uv init myproject
перешёл в неё и даю команду
uv add -r req.txt
где req.txt - файл зависимостей из проекта Whisper-Live (есть на гитхабе)
И команда валится с ошибкой:
x No solution found when resolving dependencies for split (markers: python_full_version >= '3.13'):
`-> Because only the following versions of ml-dtypes are available:
ml-dtypes<=0.5.0
ml-dtypes==0.5.1
ml-dtypes==0.5.3
ml-dtypes==0.5.4
and ml-dtypes>=0.5.0 depends on numpy{python_full_version >= '3.13'}>=2.1.0, we can conclude that
ml-dtypes>=0.5.0 depends on numpy>=2.1.0.
And because onnx==1.20.0 depends on ml-dtypes>=0.5.0, we can conclude that onnx==1.20.0 depends on numpy>=2.1.0.
And because your project depends on numpy==1.26.4 and onnx==1.20.0, we can conclude that your project's
requirements are unsatisfiable.
hint: While the active Python version is 3.12, the resolution failed for other Python versions supported by your
project. Consider limiting your project's supported Python versions using `requires-python`.
help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip
locking and syncing.
хотя команда uv pip install -r req.txt
нормально ставит зависимости.
в итоге ей и воспользовался.
но почему так?
но это же неправильно и лучше через uv add ?