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
Conda UnsatisfiableError: The following specifications were found to be incompatible with your CUDA driver #55
Comments
I am having similar problems on Ubuntu 18.04.v
|
@pjgoodall Have you come across this issue when installing other conda packages? |
I'm just rebuilding that environment with Python 3.7. WIlling to try any experiments you like. nvidia package updates:
|
@KevinMusgrave Went 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. |
That's strange, I'll try to look into this more when I get the time. Thanks for posting your findings! |
Hi Kevin I have the same problem as you, have you found the solution? |
I haven't gotten around to fixing this. For now, if you want to use this package inside conda, you'll have to do:
|
Oh ok cheers for the information |
@Hanros94 Did pip installation work for you? |
@pjgoodall Python 3.8 vs 3.7 seems to be an issue with this other package as well. |
I'm not trying to install this specific package, I was just getting the same error. I'm using python 3.7.6 |
@Hanros94 When you try to install this package, do you get the error? |
which command do you want me to try? |
conda install pytorch-metric-learning -c metric-learning |
I'm getting the same error as you: Available versionsThe following specifications were found to be incompatible with your CUDA driver:
Your installed CUDA driver is: 8.0 |
my conda version is obviously earlier however I'm making use of anaconda prompt and python 3.7.6 |
I see, that's a bummer. I was hoping it was a python 3.8 vs 3.7 issue. Unfortunately this is hard to debug because the error message is so cryptic. |
I had a similar error for a completely unrelated package (cf this issue comment) and this turns out not related to CUDA. The reason was because one of the dependency was not available for So not sure this is the case for you but it may be that one of the dependency is not yet available for |
Ok that sounds great, I'm using python 3.7.6 however. |
@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:
|
@mick-d Do you know if it matters which version of python I'm using when running conda-build? I'm using python 3.7.6. I mean if I use conda-build in a python 3.8 environment, I wonder if that would fix it. The dependencies for this package are widely used, and I doubt they don't support 3.8. |
@KevinMusgrave Sorry i am not sure about conda-build, but i wouldn't discard the python version angle as the problem can happen to |
@mick-d I created a python 3.8 environment, then tried installing conda-build. Got this error:
Lmao! Looks like conda-build isn't ready for python 3.8, so I guess I'll have to wait to try that experiment. Edit: Actually it looks like 2nd edit Built it with conda-build in a python 3.8 environment. For me, it installs on Linux, python 3.7.7, but still fails on python 3.8. |
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: {% set name = "pytorch-metric-learning" %}
{% set version = "0.9.86" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
source:
url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz"
sha256: "f7327b3314bfccf930c25ea47be78540730106a301ef12fd920a72defadd4247"
build:
number: 0
script: "python -m pip install . --no-deps --ignore-installed -vv "
requirements:
host:
run:
- python >=3.0
- numpy
- scikit-learn
- tqdm
- pytorch
- torchvision
about:
home: "https://github.com/KevinMusgrave/pytorch-metric-learning"
license: "MIT"
license_family: "MIT"
license_file: ""
summary: "The easiest way to use deep metric learning in your application. Modular, flexible, and extensible. Written in PyTorch."
doc_url: "https://kevinmusgrave.github.io/pytorch-metric-learning"
dev_url: ""
extra:
recipe-maintainers:
- KevinMusgrave And here's what my new meta.yaml looks like: {% set name = "pytorch-metric-learning" %}
{% set version = "0.9.86" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
source:
url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz"
sha256: f7327b3314bfccf930c25ea47be78540730106a301ef12fd920a72defadd4247
build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
noarch: python
requirements:
host:
- numpy
- pip
- python >=3.6
- scikit-learn
- pytorch
- torchvision
- tqdm
run:
- numpy
- python >=3.6
- scikit-learn
- pytorch
- torchvision
- tqdm
test:
imports:
- pytorch_metric_learning
- pytorch_metric_learning.losses
- pytorch_metric_learning.miners
- pytorch_metric_learning.regularizers
- pytorch_metric_learning.samplers
- pytorch_metric_learning.testers
- pytorch_metric_learning.trainers
- pytorch_metric_learning.utils
about:
home: "https://github.com/KevinMusgrave/pytorch-metric-learning"
license: "MIT"
license_family: "MIT"
license_file: ""
summary: "The easiest way to use deep metric learning in your application. Modular, flexible, and extensible. Written in PyTorch."
doc_url: "https://kevinmusgrave.github.io/pytorch-metric-learning"
dev_url: ""
extra:
recipe-maintainers:
- KevinMusgrave The build command that works is: The old installation command that failed was: The new command that works is: I have tested this on Linux python 3.7 and 3.8. |
While installing the fbprophet package, I am receiving the same error what can I do? |
@JananiPrabu The above solution has to do with my own package building error, so I can't help with fbprophet. You should open an issue in their git repo, which I assume is this: https://github.com/facebook/prophet |
Fresh install of Anaconda Python 3.8 here, on Windows 10:2004. Accepted all defaults, straight to an anaconda 64 prompt:
Something is very broken here, and it isn't just one package. |
@kmshort Hmm, yeah I may have gotten lucky with my fix. To be honest I don't understand how the conda build system works. Anyway, I would open an issue in the conda, bioconda, and deeptools repos. |
I have just created a new conda environment for python 3.9.0 with:
After activating py390 environment I tried to install pandas with:
but I got:
|
@ghuname I've got the same error, but it works if I install pandas from the conda-forge channel |
Seeing the same error with conda install requests over here. conda-forge works though. |
This worked for me.
Tried installing PyG with pip with command: Also tried conda: Kept 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 |
Fix the following conda errors (not sure if they are reproducible errors):
Windows:
Linux:
The text was updated successfully, but these errors were encountered: