-
Hi, I'm trying to install a CPU version of (py)torch using the following command, but I can't seem to get What is the pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu Many thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I've got it working: Option 1 (easier)Following https://pixi.sh/v0.22.0/reference/configuration/#the-pypi-options-table, add to [tool.pixi.pypi-options]
index-url = "https://pypi.org/simple"
extra-index-urls = ["https://download.pytorch.org/whl/cpu"] Option 2 (more work)Following https://pixi.sh/v0.22.0/reference/configuration/#pypi-dependencies, pass in the appropriate URL (within torch = { url = "https://download.pytorch.org/whl/cpu/torch-2.4.0%2Bcpu-cp312-cp312-linux_x86_64.whl#sha256=78dbf5f2789933a7ea2dabeead4daa44679b1e0d8eb35ddb7071c8ab7b181eb3" } Thanks again for an amazing lib! |
Beta Was this translation helpful? Give feedback.
-
I am using this way: pixi.toml [pypi-dependencies]
torch = { version = "*", index = "https://download.pytorch.org/whl/cpu" } but it's no way to do this w/ |
Beta Was this translation helpful? Give feedback.
I've got it working:
Option 1 (easier)
Following https://pixi.sh/v0.22.0/reference/configuration/#the-pypi-options-table, add to
pyproject.toml
:Option 2 (more work)
Following https://pixi.sh/v0.22.0/reference/configuration/#pypi-dependencies, pass in the appropriate URL (within
pyproject.toml
, e.g.Thanks again for an amazing lib!