dinov2
dinov2 copied to clipboard
Python version?
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:
Collecting cuml-cu11 (from -r requirements.txt (line 10))
Downloading cuml-cu11-24.2.0.tar.gz (6.9 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "/home/jheaton/ML/Automatic Labelling/dinov2/venvs/dinov2/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/jheaton/ML/Automatic Labelling/dinov2/venvs/dinov2/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jheaton/ML/Automatic Labelling/dinov2/venvs/dinov2/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ac3u0_zd/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ac3u0_zd/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-ac3u0_zd/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-ac3u0_zd/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 90, in <module>
RuntimeError: Bad params
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
python3.10:
Collecting ptxcompiler-cu11
Using cached ptxcompiler-cu11-0.8.1.tar.gz (6.9 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-4pgp33xy/ptxcompiler-cu11_3b0336377e224ee8b4d722d27a01fc8b/setup.py", line 90, in <module>
raise RuntimeError("Bad params")
RuntimeError: Bad params
[end of output]
python3.9:
Collecting ptxcompiler-cu11
Using cached ptxcompiler-cu11-0.8.1.tar.gz (6.9 kB)
ERROR: Command errored out with exit status 1:
command: '/home/jheaton/ML/Automatic Labelling/dinov2/venvs/dinov2/bin/python3.9' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-yua3d_3u/ptxcompiler-cu11/setup.py'"'"'; __file__='"'"'/tmp/pip-install-yua3d_3u/ptxcompiler-cu11/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-yua3d_3u/ptxcompiler-cu11/pip-egg-info
cwd: /tmp/pip-install-yua3d_3u/ptxcompiler-cu11/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-yua3d_3u/ptxcompiler-cu11/setup.py", line 90, in <module>
raise RuntimeError("Bad params")
RuntimeError: Bad params
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
python3.8:
Collecting cuml-cu11
Using cached cuml-cu11-23.12.0.tar.gz (6.8 kB)
ERROR: Command errored out with exit status 1:
command: '/home/jheaton/ML/Automatic Labelling/dinov2/dinov2/bin/python3.8' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0lp6ogs6/cuml-cu11/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0lp6ogs6/cuml-cu11/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-0lp6ogs6/cuml-cu11/pip-egg-info
cwd: /tmp/pip-install-0lp6ogs6/cuml-cu11/
Complete output (15 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-0lp6ogs6/cuml-cu11/setup.py", line 137, in <module>
raise RuntimeError(open("ERROR.txt", "r").read())
RuntimeError:
###########################################################################################
The package you are trying to install is only a placeholder project on PyPI.org repository.
This package is hosted on NVIDIA Python Package Index.
This package can be installed as:
```
$ pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com cuml-cu11
```
###########################################################################################
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The pip install supposed fix in the above issue does not work
python3.6:
Collecting torch==2.0.0 (from -r requirements.txt (line 2))
Could not find a version that satisfies the requirement torch==2.0.0 (from -r requirements.txt (line 2)) (from versions: 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2)
No matching distribution found for torch==2.0.0 (from -r requirements.txt (line 2))
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.