Skip to content
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

Different package resolution with conda and mamba when installing pytorch #1001

Closed
thomasaarholt opened this issue Jun 12, 2021 · 5 comments
Closed

Comments

@thomasaarholt
Copy link

Using mamba in a fresh install of mambaforge, I went to install the pytorch CPU version today on a computer without a CUDA GPU. I was surprised to see that cudatoolkit (1GB) was included in the packages to be installed. Then by accident I did the same thing again using conda, and realised that it was excluded in that case.

The following two commands result in different output:
conda create --name torchtest pytorch torchvision torchaudio cpuonly -c pytorch
mamba create --name torchtest pytorch torchvision torchaudio cpuonly -c pytorch

To be clear: The conda result is correct. By including the cpuonly package, this somehow tells conda that the normal dependency of pytorch on cudatoolkit should be avoided. I believe it is a "mutex metapackage", like the nomkl package is. I am not familiar with how they work.

I believe this is related to #924 and may be fixed in openSUSE/libsolv#448, but I thought I'd mention it anyway.

@wolfv
Copy link
Member

wolfv commented Jun 12, 2021

This is a duplicate. The pytorch package is not a mutex package, it's using deprecated conda "track_features". pytorch/pytorch#40213

@wolfv wolfv closed this as completed Jun 12, 2021
@wolfv
Copy link
Member

wolfv commented Jun 12, 2021

#336

@wolfv
Copy link
Member

wolfv commented Jun 12, 2021

Would be great if you can leave a comment on the pytorch repo, or even the PR that attempts to fix this: pytorch/builder#488

@wolfv
Copy link
Member

wolfv commented Jun 12, 2021

PS. you can use pytorch from conda-forge, it should work fine

@thomasaarholt
Copy link
Author

Thanks, I didn't spot #336 when I searched before creating the issue!

Having a look at the pytorch builder now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants