Error when installing opencv-python on jetson nano (ModuleNotFoundError: No module named'skbuild')

Error when installing opencv-python on jetson nano

# python3 -m pip install opencv-python
Collecting opencv-python
  Downloading https://files.pythonhosted.org/packages/30/46/821920986c7ce5bae5518c1d490e520a9ab4cef51e3e54e35094dadf0d68/opencv-python-4.4.0.46.tar.gz (88.9MB)
    100% |################################| 88.9MB 2.7kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-vc_ucm46/opencv-python/setup.py", line 9, in <module>
        import skbuild
    ModuleNotFoundError: No module named 'skbuild'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vc_ucm46/opencv-python/

Solved by building from source. But this took about 8 hours ...

git clone https://github.com/mdegans/nano_build_opencv
cd nano_build_opencv
./build_opencv.sh

It seems that 6GB of swap file needs to be added. (If not, it could cause a build error due to memory exhaustion. The build error is painful after 8 hours)

gitclonehttps://github.com/JetsonHacksNano/installSwapfile
cd installSwapfile
./installSwapfile.sh

reference

When ModuleNotFoundError: No module named ‘skbuild’ appears in pip install https://github.com/mdegans/nano_build_opencv gitclonehttps://github.com/JetsonHacksNano/installSwapfile

Recommended Posts

Error when installing opencv-python on jetson nano (ModuleNotFoundError: No module named'skbuild')
Attempting to install opencv-python3 on jetson nano but error (ModuleNotFoundError: No module named'skbuild')
Today's python error: ModuleNotFoundError: No module named
Error resolution when installing numba on macOS
Today's python error: ModuleNotFoundError: No module named
ModuleNotFoundError: No module named'***' when running Flask
Today's python error: ModuleNotFoundError: No module named'requests'
Today's python error: ModuleNotFoundError: No module named'bs4'
No module named'_ctypes' occurs when installing pipenv
Error when installing a module with Python pip
ModuleNotFoundError: No module named'py4j'
When I try to import pandas on macOS I get the error No module named'_bz2'
ModuleNotFoundError: No module named'flask_sqlalchemy'
Error handling when installing mecab-python
[Python] ModuleNotFoundError: No module named'urlparse'
polyfit error when installing matplotlib
Defense notes when pip3 doesn't work with "ImportError: No module named'packaging'" after installing python3-pip on Debian8
Error and solution when installing python3 with homebrew on mac (catalina 10.15)
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
Attempting to build opencv-python with Dockerfile on jetson nano but error ((CUDA_cufft_LIBRARY (ADVANCED) ...-- Configuring incomplete, errors occurred!)
[python] Error when installing library ramkan
Support when installing pillow on python3.9
Error compiling mmh3 module on CircleCI
ModuleNotFoundError in poetry: No module named'setuptools'