Hi! I’m trying to reinstall OpenCV with CUDA support on my Jetson Orin Nano. I had installed it previously, but later tried to remove it. I thought I had deleted all the related CUDA and OpenCV files through the terminal and even Files, but when I check jtop, it still shows that OpenCV with CUDA is installed. I’m not sure what’s still left or how to fully remove it. Any help would be greatly appreciated!
Hi,
You can uninstall CUDA with the following command:
$ sudo apt-get -y purge cuda-repo-ubuntu2204-12-6-local*
$ sudo apt-key del $(apt-key list | grep cudatools -B 1| grep 'pub' | cut -d ' ' -f 4 | cut -d/ -f 2)
$ sudo apt-get purge -y cuda-*-12-6
$ sudo apt-get purge -y $(dpkg -l | grep 'cuda-toolkit-' | grep 12.6 | awk '{print $2}')
$ sudo rm -rf /usr/local/cuda-12.6
How do you install OpenCV with CUDA support?
For pip, you can try pip3 uninstall ... to uninstall the package.
Thanks.
Hi,
I just want to make sure that the commands will help me uninstall OPEN CV WITH CUDA instead of just CUDA because I think they are different things as I see on jtop.
thanks!
Hi,
How do you install OpenCV in your environment?
If you build it from the source, you can uninstall it through the Makefile of the source.
Thanks.
I am not sure. I followed Install OpenCV on Jetson Nano - Q-engineering ti install open cv with cuda before.
Hi,
Could you try to run make uninstall inside the build folder to see if it works?
Thanks.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.