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
Python version? #388
Comments
I have the exact same problem here. Exact same error message with no versions of python working. Tried upgrading pip and setuptools with no success. Conda environment solving takes forever too. Any help from any of the contributors would be appreciated, as it seems like this is a recent issue (I don't see any other similar issues in the Issues tab). Thank you! |
I have just come back to the conda install and it has failed saying that my installed CUDA version (12.1) is incompatible |
The issue seems to be with ptxcompiler-cu11. There doesn't appear to be much documentation for this python package, and the error when installing is not useful at all so I am unsure where to go from here. |
@chokevin8 Create conda environment with python 3.10.13
Don't ask my why this works because I have no idea. But these steps can get you to run segmentation inference, which is what I was wanting from this repo |
@jamesheatonrdm can confirm that this also works for training. Thank you so much! I also have no idea why this works. |
@chokevin8 Did you ever run into a "Failed building wheel for mmcv-full":
Seems to be a recurring issue with my code, and i dont seem to be able to find much of a solution online |
@Al3cL1 Hmm, no, do you get this when running what @jamesheatonrdm suggested (mentioned below)? Maybe deactivate and remove your environment and create a new environment with python 3.10.13 if you already haven't. I remember I did have to separately install some other required packages for training like fvcore afterwards, but I didn't get an error like yours.
|
Yeah no ok I think its an issue with my cuda/cudatoolkit version, which might be affecting dependencies. I think I got it thought. |
A conda.yml file would be as follows name: dinov2
channels:
- defaults
- pytorch
- nvidia
- xformers
- conda-forge
dependencies:
- python=3.10
- pytorch::pytorch=2.0.0
- pytorch::pytorch-cuda=11.7.0
- pytorch::torchvision=0.15.0
- omegaconf
- torchmetrics=0.10.3
- fvcore
- iopath
- xformers::xformers
- tensorboard
- pip
- pip:
- git+https://github.com/facebookincubator/submitit
- --extra-index-url https://pypi.nvidia.com
- cuml-cu11
- openmim you can install it with |
It is not clear what Python version is suitable for this project. I am unable to install the required dependencies when using versions 3.6, 3.8, 3.9, 3.10 and 3.11
python3.11:
python3.10:
python3.9:
python3.8:
The pip install supposed fix in the above issue does not work
python3.6:
Does anyone have any advice as to which python version I should be using? I have CUDA 12.1 installed on my Ubuntu 20.04 system.
I have attempted to create the conda environment but this takes a VERY long time - it is still solving the environment after I have tested all of these different python versions with pip. Hopefully using conda will work but I would also like to know why seemingly no python versions appear to work.
The text was updated successfully, but these errors were encountered: