Search code examples
pythonopencvubuntuterminalnvidia-jetson

ls: cannot access '/usr/local/python/cv2/python-3.6': No such file or directory


I am trying to install opencv following the tutorial - https://www.pyimagesearch.com/2018/05/28/ubuntu-18-04-how-to-install-opencv/

I got through till make -j4 and made 100% compile.

After this step, when I try ls /usr/local/python/cv2/python-3.6, I get the following error

ls: cannot access '/usr/local/python/cv2/python-3.6': No such file or directory
cd /usr/local/python/cv2  
ls -l  

total 16  
-rw-r--r-- 1 root root   98 Jul  3 13:55 config.py  
-rw-r--r-- 1 root root 2857 Nov 17  2018 __init__.py  
-rw-r--r-- 1 root root  151 Nov 17  2018 load_config_py2.py  
-rw-r--r-- 1 root root  262 Nov 17  2018 load_config_py3.py  

which python  
/home/ciaran/.virtualenvs/cv/bin/python

I have looked at multiple forums online and tried troubleshooting but I still can't get past this step.


Solution

  • Solved this.

    If your compile chokes and hangs, it may be due to a threading race condition. In the event you run into this problem, simply delete your build directory, recreate it, and re-run cmake and make . This time do not include the flag next to make.

    Used $ make in place of $ make -j4 in the tutorial.