rknn-toolkit icon indicating copy to clipboard operation
rknn-toolkit copied to clipboard

Ubuntu18.04 install rknn-toolkit

Open GDbbq opened this issue 3 years ago • 0 comments

s$ sudo pip3 install rknn_toolkit_lite-1.7.0-cp36-cp36m-linux_x86_64.whl

Keyring is skipped due to an exception: org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.secrets': timed out (service_start_timeout=120000ms) WARNING: The directory '/home/linjiahui/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Processing ./rknn_toolkit_lite-1.7.0-cp36-cp36m-linux_x86_64.whl Requirement already satisfied: ruamel.yaml==0.15.81 in /usr/local/lib/python3.6/dist-packages (from rknn-toolkit-lite==1.7.0) (0.15.81) Collecting psutil==5.6.2 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c6/c1/beed5e4eaa1345901b595048fab1c85aee647ea0fc02d9e8bf9aceb81078/psutil-5.6.2.tar.gz (432 kB) |████████████████████████████████| 432 kB 583 kB/s
Preparing metadata (setup.py) ... done Requirement already satisfied: numpy==1.16.3 in /home/linjiahui/.local/lib/python3.6/site-packages (from rknn-toolkit-lite==1.7.0) (1.16.3) Building wheels for collected packages: psutil Building wheel for psutil (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f_8zalyz/psutil_e972d39f6034450b9099752416ec3423/setup.py'"'"'; file='"'"'/tmp/pip-install-f_8zalyz/psutil_e972d39f6034450b9099752416ec3423/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-7umee0c9 cwd: /tmp/pip-install-f_8zalyz/psutil_e972d39f6034450b9099752416ec3423/ Complete output (44 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/psutil copying psutil/_psaix.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_common.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_psposix.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_pssunos.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_pswindows.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_psbsd.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/init.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_psosx.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_pslinux.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_compat.py -> build/lib.linux-x86_64-3.6/psutil creating build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/main.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/runner.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/init.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.6/psutil/tests running build_ext building 'psutil._psutil_linux' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/psutil x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=562 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o psutil/_psutil_common.c:9:10: fatal error: Python.h: 没有那个文件或目录 #include <Python.h> ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Failed building wheel for psutil Running setup.py clean for psutil Failed to build psutil Installing collected packages: psutil, rknn-toolkit-lite Attempting uninstall: psutil Found existing installation: psutil 5.9.3 Uninstalling psutil-5.9.3: Successfully uninstalled psutil-5.9.3 Running setup.py install for psutil ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f_8zalyz/psutil_e972d39f6034450b9099752416ec3423/setup.py'"'"'; file='"'"'/tmp/pip-install-f_8zalyz/psutil_e972d39f6034450b9099752416ec3423/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-qnfuoumv/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6/psutil cwd: /tmp/pip-install-f_8zalyz/psutil_e972d39f6034450b9099752416ec3423/ Complete output (46 lines): running install /home/linjiahui/.local/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/psutil copying psutil/_psaix.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_common.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_psposix.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_pssunos.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_pswindows.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_psbsd.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/init.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_psosx.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_pslinux.py -> build/lib.linux-x86_64-3.6/psutil copying psutil/_compat.py -> build/lib.linux-x86_64-3.6/psutil creating build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/main.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/runner.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/init.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.6/psutil/tests copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.6/psutil/tests running build_ext building 'psutil._psutil_linux' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/psutil x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=562 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o psutil/_psutil_common.c:9:10: fatal error: Python.h: 没有那个文件或目录 #include <Python.h> ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Rolling back uninstall of psutil Moving to /home/linjiahui/.local/lib/python3.6/site-packages/psutil-5.9.3.dist-info/ from /home/linjiahui/.local/lib/python3.6/site-packages/~sutil-5.9.3.dist-info Moving to /home/linjiahui/.local/lib/python3.6/site-packages/psutil/ from /home/linjiahui/.local/lib/python3.6/site-packages/~sutil ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f_8zalyz/psutil_e972d39f6034450b9099752416ec3423/setup.py'"'"'; file='"'"'/tmp/pip-install-f_8zalyz/psutil_e972d39f6034450b9099752416ec3423/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-qnfuoumv/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6/psutil Check the logs for full command output.

GDbbq avatar Nov 04 '22 02:11 GDbbq