pytorch-metric-learning: Conda UnsatisfiableError: The following specifications were found to be incompatible with your CUDA driver
Fix the following conda errors (not sure if they are reproducible errors):
Windows:
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:
- feature:/win-64::__cuda==10.2=0
- feature:|@/win-64::__cuda==10.2=0
Your installed CUDA driver is: 10.2
Linux:
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:
- feature:/linux-64::__cuda==10.1=0
- feature:|@/linux-64::__cuda==10.1=0
Your installed CUDA driver is: 10.1
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 32 (13 by maintainers)
I think I finally fixed it, and it was an error in the way I was building the package.
For any other conda-building-noobs out there, here’s what my old meta.yaml looked like:
And here’s what my new meta.yaml looks like:
The build command that works is:
conda-build -c pytorch $pkg, which is what I was doing before. (The new build script can be found here)The old installation command that failed was:
conda install pytorch-metric-learning -c metric-learningThe new command that works is:
conda install pytorch-metric-learning -c metric-learning -c pytorchI have tested this on Linux python 3.7 and 3.8.
Seeing the same error with conda install requests over here. conda-forge works though.
I haven’t gotten around to fixing this. For now, if you want to use this package inside conda, you’ll have to do:
@KevinMusgrave Flipping between 3.7 and 3.8 in this environment.yml seems to cause the problem reliably. Moving between variants with
conda env update --file ./environment.yml --pruneWent from 3.7 to a fail on 3.8, and back to success on 3.7. Have also tried creating environments from scratch, with apparently identical results. A lot of conda solver computation trying to get to 3.8. environment.zip
This worked for me. My environment:
Tried installing PyG with pip with command:
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.10.2+cpu.htmlAlso tried conda:
conda install pyg -c pygKept getting the same error while importing torch-geometric or torch-scatter in Python. Error was:
NOTE: This worked with Pytorch version torch-1.11.0 which was installed by conda
@Hanros94 I just meant that you may need a lower python version (not necessarily 3.7 instead of 3.8).
However it turns out this is exactly the same situation. Your conda repo does not work with python 3.8 but it works with python 3.7 (more precisely 3.7.6), i just tested it:
Since 3.7.6 is the latest for python 3.7, you could also simply do: