You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note, this seems to be an question with all Python dependency tools. However, I wasn't able to find any documentation on the problem online.
I use the uv pip method with requirements.txt. When I add torch to my pyproject.toml -> project.dependencies, then run uv pip compile, it creates a requirements.txt with a bunch of Linux-specific dependencies for nvidia packages such as nvidia-cublas-cu12 and nvidia-nccl-cu12. This works and makes sense for Linux. However, if you are building a cross-platform compatible tool, this does not work on Windows. When running uv pip install torch on Windows, those nvidia dependencies are not installed. This makes uv pip sync fail on Windows.
The only solutions I came up with are to remove the dependencies from the requirements file manually or use --no-emit-package.
The text was updated successfully, but these errors were encountered:
Note, this seems to be an question with all Python dependency tools. However, I wasn't able to find any documentation on the problem online.
I use the uv pip method with
requirements.txt
. When I addtorch
to mypyproject.toml
->project.dependencies
, then runuv pip compile
, it creates arequirements.txt
with a bunch of Linux-specific dependencies for nvidia packages such asnvidia-cublas-cu12
andnvidia-nccl-cu12
. This works and makes sense for Linux. However, if you are building a cross-platform compatible tool, this does not work on Windows. When runninguv pip install torch
on Windows, those nvidia dependencies are not installed. This makesuv pip sync
fail on Windows.The only solutions I came up with are to remove the dependencies from the requirements file manually or use
--no-emit-package
.The text was updated successfully, but these errors were encountered: