install conda → location: /home/yuna/anaconda3

conda environment setting:

python train.py

Cuda installation:

→ error message:

dpkg: error processing package cuda (--configure): dependency problems - leaving unconfigured Processing triggersuds for initramfs-tools (0.140ubuntu13.4) ... update-initramfs: Generating /boot/initrd.img-6.5.0-35-generic Errors were encountered while processing: nvidia-dkms-520 cuda-drivers-520 cuda-drivers nvidia-driver-520 cuda-runtime-11-8 cuda-11-8 cuda-demo-suite-11-8 cuda E: Sub-process /usr/bin/dpkg returned an error code (1)

→ FOLLOWED THIS AND NOW IT SOMEHOW WORKED.

https://blog.csdn.net/hhhhhhhhhhwwwwwwwwww/article/details/127755031

nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [61 lines of output] No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-11.7' running bdist_wheel running build running build_ext building 'simple_knn._C' extension