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
When ModuleNotFoundError: No module named ‘skbuild’ appears in pip install https://github.com/mdegans/nano_build_opencv gitclonehttps://github.com/JetsonHacksNano/installSwapfile
Recommended Posts