0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

jetson nanoへのopencv-pythonインストール時にエラー(ModuleNotFoundError: No module named 'skbuild')

Posted at

jetson nanoへのopencv-pythonインストール時にエラー

# 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/

ソースからビルドで解決。でもこれは8時間くらい掛かった、、、

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

swapファイル6GB追加が要りそう。
(ない場合はメモリ枯渇でビルドエラーになることがありました。8時間後にビルドエラーは辛い)

git clone https://github.com/JetsonHacksNano/installSwapfile
cd installSwapfile
./installSwapfile.sh

参考

pip installでModuleNotFoundError: No module named ‘skbuild’が出た時
https://github.com/mdegans/nano_build_opencv
[git clone https://github.com/JetsonHacksNano/installSwapfile](git clone https://github.com/JetsonHacksNano/installSwapfile)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?