|
【人工智能】
RK3399pro 安装RKNN 1.7.1报错
发表于 2023-5-10 10:58:40
浏览:4782
|
回复:0
打印
只看该作者
[复制链接]
楼主
问题描述及复现步骤:
平台:Ubuntu 20.04 + 2GB内存 +1GB NPU
环境:
- # firefly @ firefly in ~ venv [10:07:53]
- $ pip list
- Package Version
- ---------------------------- --------
- absl-py 1.4.0
- astunparse 1.6.3
- cachetools 5.3.0
- certifi 2023.5.7
- charset-normalizer 3.1.0
- flatbuffers 23.3.3
- gast 0.4.0
- google-auth 2.17.3
- google-auth-oauthlib 0.4.6
- google-pasta 0.2.0
- graphviz 0.8.4
- grpcio 1.54.0
- h5py 3.8.0
- idna 3.4
- importlib-metadata 6.6.0
- keras 2.11.0
- libclang 16.0.0
- Markdown 3.4.3
- MarkupSafe 2.1.2
- mxnet 1.9.0
- numpy 1.21.6
- oauthlib 3.2.2
- opencv-python 4.5.3.56
- opt-einsum 3.3.0
- packaging 23.1
- Pillow 9.5.0
- pip 23.1.2
- pkg_resources 0.0.0
- protobuf 3.19.6
- psutil 5.6.2
- pyasn1 0.5.0
- pyasn1-modules 0.3.0
- requests 2.30.0
- requests-oauthlib 1.3.1
- rknn-toolkit-lite 1.7.1
- rsa 4.9
- ruamel.yaml 0.15.81
- setuptools 67.7.2
- six 1.16.0
- tensorboard 2.11.2
- tensorboard-data-server 0.6.1
- tensorboard-plugin-wit 1.8.1
- tensorflow 2.11.0
- tensorflow-cpu-aws 2.11.0
- tensorflow-estimator 2.11.0
- tensorflow-io-gcs-filesystem 0.29.0
- termcolor 2.3.0
- torch 1.12.0
- torchvision 0.12.0
- typing_extensions 4.5.0
- urllib3 2.0.2
- Werkzeug 2.2.3
- wheel 0.40.0
- wrapt 1.15.0
- zipp 3.15.0
复制代码
问题:根据《Rockchip_User_Guide_RKNN_Toolkit_V1.7.1_CN》和 《Rockchip_Quick_Start_RKNN_Toolkit_V1.7.1_CN》操作文档已经安装了RKNN相关依赖,环境是python 3.7 (virtual),- pip3 install --default-timeout=100 rknn_toolkit-1.7.1-cp37-cp37m-linux_aarch64.whl
复制代码
安装过程中就出现以下错误,大致是无法编译通过opencv-python,之前安装opencv-python 4.7版本,通过chat-gpt搜索答案后,重新安装opencv-python 4.5.3.56,仍然未解决!!! 而且安装过程,不管是有线网还是无线网,等待非常久。
- c++: fatal error: Killed signal terminated program cc1plus
- compilation terminated.
- make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:76: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1
- make[1]: *** [CMakeFiles/Makefile2:1843: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
- make: *** [Makefile:166: all] Error 2
- Traceback (most recent call last):
- File "/tmp/pip-build-env-m2qzw8o0/overlay/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 674, in setup
- cmkr.make(make_args, install_target=cmake_install_target, env=env)
- File "/tmp/pip-build-env-m2qzw8o0/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 696, in make
- self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
- File "/tmp/pip-build-env-m2qzw8o0/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 741, in make_impl
- raise SKBuildError(msg)
-
- An error occurred while building with CMake.
- Command:
- /tmp/pip-build-env-m2qzw8o0/overlay/lib/python3.7/site-packages/cmake/data/bin/cmake --build . --target install --config Release --
- Install target:
- install
- Source directory:
- /tmp/pip-install-cyfstk69/opencv-python_017be744da0a466ba9f9c8d52a87d6d4
- Working directory:
- /tmp/pip-install-cyfstk69/opencv-python_017be744da0a466ba9f9c8d52a87d6d4/_skbuild/linux-aarch64-3.7/cmake-build
- Please check the install target is valid and see CMake's output for more information.
-
- [end of output]
-
- note: This error originates from a subprocess, and is likely not a problem with pip.
- ERROR: Failed building wheel for opencv-python
- Failed to build opencv-python
- ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects
复制代码
|
|