-
Notifications
You must be signed in to change notification settings - Fork 166
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
Can't install python=3.12
and torchvision=0.19.1
with pixi
, but works with mamba
#2006
Comments
python=3.12
and torchvision
with pixi
, but works with mamba
python=3.12
and torchvision=0.19.1
with pixi
, but works with mamba
I can't figure out why it cannot install just yet (@ruben-arts) has looked more into torch issues, he might have some insight. But at least this is working for me: [project]
dependencies = []
description = "Add a short description here"
name = "test_env"
version = "0.1.0"
requires-python = ">= 3.12"
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pixi.dependencies]
torchvision = ">=0.19.0" This does depend on a patch version less than the one that you proposed but is making use of the conda-forge channel exclusively. |
There are two ways to fix this:
#...
[tool.pixi.project]
# Switch channels to make conda-forge the highest priority
channels = ["conda-forge","pytorch"]
platforms = ["linux-64"]
[tool.pixi.dependencies]
python = ">=3.12"
# Define all packages you want to fetch from 'pytorch' with a specific channel.
# You could leave the once that only exist on 'pytorch' channel out but this is the safest way.
pytorch = {channel = "pytorch", version = "*"}
pytorch-cuda = {channel = "pytorch", version = "*"}
pytorch-mutex = {channel = "pytorch", version = "*"}
torchtriton = {channel = "pytorch", version = "*"}
torchvision = {channel = "pytorch", version = ">=0.19.0"}
#...
[tool.pixi.project]
channels = ["conda-forge","pytorch"]
# Let pixi use any mix of packages from all channels and just give any solution.
channel-priority = "disabled"
platforms = ["linux-64"]
[tool.pixi.dependencies]
python = ">=3.12"
torchvision = ">=0.19.0" ps. don't forget to set the [tool.pixi.system-requirements]
cuda = "12.1" |
Thanks very much for your help @tdejager @ruben-arts This works for me: [project]
authors = [{name = "name", email = "email@email.com"}]
dependencies = []
description = "Add a short description here"
name = "test_env"
requires-python = ">= 3.12"
version = "0.1.0"
[tool.pixi.project]
channels = ["conda-forge","pytorch"]
platforms = ["linux-64"]
[tool.pixi.dependencies]
python = ">=3.12"
pytorch = {channel = "pytorch", version = "*"}
torchvision = {channel = "pytorch", version = ">=0.19.1"} |
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Unfortunately this doesn't work:
running
pixi install
yields:Issue description
The compatible package does indeed appear to exist: https://anaconda.org/pytorch/torchvision/files?version=0.19.1
Expected behavior
This works (e.g. I can successfully
import torchvision
)The text was updated successfully, but these errors were encountered: