Trouble with Installing dependencies
pip install -r assets/requirements/requirements.txt
whenever i try to install this thing above
i get this error
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/MaureenZOU/detectron2-xyz.git (from -r assets/requirements/requirements.txt (line 33))
Cloning https://github.com/MaureenZOU/detectron2-xyz.git to c:\users\darkn\appdata\local\temp\pip-req-build-qtalauo7
Running command git clone --filter=blob:none --quiet https://github.com/MaureenZOU/detectron2-xyz.git 'C:\Users\darkn\AppData\Local\Temp\pip-req-build-qtalauo7'
Resolved https://github.com/MaureenZOU/detectron2-xyz.git to commit 42121d75e10d9f858f3a91b6a39f5722c02868f0
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 "C:\Users\darkn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\darkn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\darkn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\darkn\AppData\Local\Temp\pip-build-env-pcnnbvu0\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\darkn\AppData\Local\Temp\pip-build-env-pcnnbvu0\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "C:\Users\darkn\AppData\Local\Temp\pip-build-env-pcnnbvu0\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\darkn\AppData\Local\Temp\pip-build-env-pcnnbvu0\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 10, in
ModuleNotFoundError: No module named 'torch'
[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.
I have CUDA 12.6 instead of 12.4, is that the problems? Many thanks
just installed 12.4 and uninstalled 12.6, but it still gives that error..
Hi, I guess there is a permission issue on your machine based on this error message:
Defaulting to user installation because normal site-packages is not writeable
You need to make sure the installation of pytorch is successful. Check the first answer in this issue: https://stackoverflow.com/questions/41060382/using-pip-to-install-packages-to-anaconda-environment
Basically you need to specify the environment to pip install into. The following issue was likely caused by unsuccessful installation of pytorch.
Hope this works for you.