I was trying to install EfficientDet on jetson nano board and i came across an error as follows:
ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
after the above error occurred, i tried to install psutil and faced another issue below
:
ERROR: Failed building wheel for psutil
thanks in advance
Hi,
Could you share the complete output log with us?
Thanks.
Defaulting to user installation because normal site-packages is not writeable
Collecting psutil
Using cached psutil-5.9.4.tar.gz (485 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: psutil
Building wheel for psutil (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for psutil (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-37
creating build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_psbsd.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_psosx.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_pslinux.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_psaix.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_psposix.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_pswindows.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_compat.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/__init__.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_pssunos.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_common.py -> build/lib.linux-aarch64-cpython-37/psutil
creating build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/runner.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_system.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_process.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_memleaks.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/__init__.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_testutils.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/__main__.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-aarch64-cpython-37
creating build/temp.linux-aarch64-cpython-37/psutil
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=594 -DPy_LIMITED_API=0x03060000 -DPSUTIL_LINUX=1 -I/usr/include/python3.7m -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-37/psutil/_psutil_common.o
psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psutil
Failed to build psutil
ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
this is the error gave for psutil
Defaulting to user installation because normal site-packages is not writeable
Collecting efficient-det
Using cached efficient_det-0.1.3-py3-none-any.whl (37 kB)
Collecting progressbar2
Using cached progressbar2-4.2.0-py2.py3-none-any.whl (27 kB)
Requirement already satisfied: pillow in ./.local/lib/python3.7/site-packages (from efficient-det) (9.4.0)
Collecting opencv-python
Using cached opencv_python-4.7.0.72-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (40.4 MB)
Collecting tabulate
Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Requirement already satisfied: pandas in ./.local/lib/python3.7/site-packages (from efficient-det) (1.3.5)
Collecting ray[tune]
Using cached ray-2.3.0-cp37-cp37m-manylinux2014_aarch64.whl (57.3 MB)
Collecting wandb
Using cached wandb-0.14.0-py3-none-any.whl (2.0 MB)
Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages (from efficient-det) (2.1.1)
Collecting virtualenv>=20.0.24
Using cached virtualenv-20.21.0-py3-none-any.whl (8.7 MB)
Collecting attrs
Using cached attrs-22.2.0-py3-none-any.whl (60 kB)
Requirement already satisfied: click>=7.0 in ./.local/lib/python3.7/site-packages (from ray[tune]->efficient-det) (8.1.3)
Requirement already satisfied: requests in ./.local/lib/python3.7/site-packages (from ray[tune]->efficient-det) (2.28.2)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from ray[tune]->efficient-det) (3.12)
Collecting frozenlist
Using cached frozenlist-1.3.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (147 kB)
Requirement already satisfied: typing-extensions in ./.local/lib/python3.7/site-packages (from ray[tune]->efficient-det) (4.5.0)
Requirement already satisfied: grpcio>=1.32.0 in ./.local/lib/python3.7/site-packages (from ray[tune]->efficient-det) (1.51.3)
Collecting aiosignal
Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Requirement already satisfied: numpy>=1.16 in ./.local/lib/python3.7/site-packages (from ray[tune]->efficient-det) (1.21.6)
Requirement already satisfied: protobuf!=3.19.5,>=3.15.3 in ./.local/lib/python3.7/site-packages (from ray[tune]->efficient-det) (3.19.6)
Requirement already satisfied: filelock in ./.local/lib/python3.7/site-packages (from ray[tune]->efficient-det) (3.9.0)
Collecting msgpack<2.0.0,>=1.0.0
Using cached msgpack-1.0.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (289 kB)
Collecting jsonschema
Using cached jsonschema-4.17.3-py3-none-any.whl (90 kB)
Collecting py-spy>=0.2.0
Using cached py_spy-0.3.14-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB)
Collecting colorful
Using cached colorful-0.5.5-py2.py3-none-any.whl (201 kB)
Collecting opencensus
Using cached opencensus-0.11.2-py2.py3-none-any.whl (128 kB)
Collecting aiohttp-cors
Using cached aiohttp_cors-0.7.0-py3-none-any.whl (27 kB)
Collecting prometheus-client>=0.7.1
Using cached prometheus_client-0.16.0-py3-none-any.whl (122 kB)
Collecting smart-open
Using cached smart_open-6.3.0-py3-none-any.whl (56 kB)
Collecting aiohttp>=3.7
Using cached aiohttp-3.8.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (952 kB)
Collecting pydantic
Using cached pydantic-1.10.6-py3-none-any.whl (156 kB)
Collecting gpustat>=1.0.0
Using cached gpustat-1.0.0-py3-none-any.whl
Requirement already satisfied: python-dateutil>=2.7.3 in ./.local/lib/python3.7/site-packages (from pandas->efficient-det) (2.8.2)
Requirement already satisfied: pytz>=2017.3 in /usr/lib/python3/dist-packages (from pandas->efficient-det) (2018.3)
Collecting python-utils>=3.0.0
Using cached python_utils-3.5.2-py2.py3-none-any.whl (24 kB)
Collecting tensorboardX>=1.9
Using cached tensorboardX-2.6-py2.py3-none-any.whl (114 kB)
Collecting GitPython!=3.1.29,>=1.0.0
Using cached GitPython-3.1.31-py3-none-any.whl (184 kB)
Collecting sentry-sdk>=1.0.0
Downloading sentry_sdk-1.17.0-py2.py3-none-any.whl (189 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 189.1/189.1 kB 374.2 kB/s eta 0:00:00
Collecting setproctitle
Using cached setproctitle-1.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (30 kB)
Collecting psutil>=5.0.0
Using cached psutil-5.9.4.tar.gz (485 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pathtools
Using cached pathtools-0.1.2-py3-none-any.whl
Collecting appdirs>=1.4.3
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting docker-pycreds>=0.4.0
Using cached docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Requirement already satisfied: setuptools in ./.local/lib/python3.7/site-packages (from wandb->efficient-det) (67.4.0)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.8.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (227 kB)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in ./.local/lib/python3.7/site-packages (from aiohttp>=3.7->ray[tune]->efficient-det) (3.0.1)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (96 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting asynctest==0.13.0
Using cached asynctest-0.13.0-py3-none-any.whl (26 kB)
Requirement already satisfied: importlib-metadata in ./.local/lib/python3.7/site-packages (from click>=7.0->ray[tune]->efficient-det) (6.0.0)
Requirement already satisfied: six>=1.4.0 in ./.local/lib/python3.7/site-packages (from docker-pycreds>=0.4.0->wandb->efficient-det) (1.16.0)
Collecting gitdb<5,>=4.0.1
Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
Collecting nvidia-ml-py<=11.495.46,>=11.450.129
Using cached nvidia_ml_py-11.495.46-py3-none-any.whl (25 kB)
Collecting blessed>=1.17.1
Using cached blessed-1.20.0-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests->ray[tune]->efficient-det) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests->ray[tune]->efficient-det) (2018.1.18)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests->ray[tune]->efficient-det) (2.6)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
Requirement already satisfied: packaging in ./.local/lib/python3.7/site-packages (from tensorboardX>=1.9->ray[tune]->efficient-det) (23.0)
Collecting platformdirs<4,>=2.4
Using cached platformdirs-3.1.1-py3-none-any.whl (14 kB)
Collecting distlib<1,>=0.3.6
Using cached distlib-0.3.6-py2.py3-none-any.whl (468 kB)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
Using cached pyrsistent-0.19.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (118 kB)
Collecting importlib-resources>=1.4.0
Using cached importlib_resources-5.12.0-py3-none-any.whl (36 kB)
Collecting pkgutil-resolve-name>=1.3.10
Using cached pkgutil_resolve_name-1.3.10-py3-none-any.whl (4.7 kB)
Collecting opencensus-context>=0.1.3
Using cached opencensus_context-0.1.3-py2.py3-none-any.whl (5.1 kB)
Collecting google-api-core<3.0.0,>=1.0.0
Using cached google_api_core-2.11.0-py3-none-any.whl (120 kB)
Collecting wcwidth>=0.1.4
Using cached wcwidth-0.2.6-py2.py3-none-any.whl (29 kB)
Collecting smmap<6,>=3.0.1
Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Requirement already satisfied: google-auth<3.0dev,>=2.14.1 in ./.local/lib/python3.7/site-packages (from google-api-core<3.0.0,>=1.0.0->opencensus->ray[tune]->efficient-det) (2.16.1)
Collecting googleapis-common-protos<2.0dev,>=1.56.2
Using cached googleapis_common_protos-1.58.0-py2.py3-none-any.whl (223 kB)
Requirement already satisfied: zipp>=0.5 in ./.local/lib/python3.7/site-packages (from importlib-metadata->click>=7.0->ray[tune]->efficient-det) (3.14.0)
Requirement already satisfied: rsa<5,>=3.1.4 in ./.local/lib/python3.7/site-packages (from google-auth<3.0dev,>=2.14.1->google-api-core<3.0.0,>=1.0.0->opencensus->ray[tune]->efficient-det) (4.9)
Requirement already satisfied: pyasn1-modules>=0.2.1 in ./.local/lib/python3.7/site-packages (from google-auth<3.0dev,>=2.14.1->google-api-core<3.0.0,>=1.0.0->opencensus->ray[tune]->efficient-det) (0.2.8)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in ./.local/lib/python3.7/site-packages (from google-auth<3.0dev,>=2.14.1->google-api-core<3.0.0,>=1.0.0->opencensus->ray[tune]->efficient-det) (5.3.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in ./.local/lib/python3.7/site-packages (from pyasn1-modules>=0.2.1->google-auth<3.0dev,>=2.14.1->google-api-core<3.0.0,>=1.0.0->opencensus->ray[tune]->efficient-det) (0.4.8)
Building wheels for collected packages: psutil
Building wheel for psutil (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for psutil (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-37
creating build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_psbsd.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_psosx.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_pslinux.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_psaix.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_psposix.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_pswindows.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_compat.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/__init__.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_pssunos.py -> build/lib.linux-aarch64-cpython-37/psutil
copying psutil/_common.py -> build/lib.linux-aarch64-cpython-37/psutil
creating build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/runner.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_system.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_process.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_memleaks.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/__init__.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_testutils.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
copying psutil/tests/__main__.py -> build/lib.linux-aarch64-cpython-37/psutil/tests
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-aarch64-cpython-37
creating build/temp.linux-aarch64-cpython-37/psutil
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=594 -DPy_LIMITED_API=0x03060000 -DPSUTIL_LINUX=1 -I/usr/include/python3.7m -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-37/psutil/_psutil_common.o
psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psutil
Failed to build psutil
ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
this is for efficient-det
Hi,
Please run the following command and try it again:
$ sudo apt-get install python-dev python3-dev
Thanks.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dev is already the newest version (2.7.15~rc1-1).
python3-dev is already the newest version (3.6.7-1~18.04).
The following packages were automatically installed and are no longer required:
apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin
dpkg-repack gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common
kde-window-manager kinit kio kpackagetool5 kwayland-data kwin-common
kwin-data kwin-x11 libdebian-installer4 libkdecorations2-5v5
libkdecorations2private5v5 libkf5activities5 libkf5attica5
libkf5completion-data libkf5completion5 libkf5declarative-data
libkf5declarative5 libkf5doctools5 libkf5globalaccel-data libkf5globalaccel5
libkf5globalaccelprivate5 libkf5idletime5 libkf5jobwidgets-data
libkf5jobwidgets5 libkf5kcmutils-data libkf5kcmutils5 libkf5kiocore5
libkf5kiontlm5 libkf5kiowidgets5 libkf5newstuff-data libkf5newstuff5
libkf5newstuffcore5 libkf5package-data libkf5package5 libkf5plasma5
libkf5quickaddons5 libkf5solid5 libkf5solid5-data libkf5sonnet5-data
libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data libkf5textwidgets5
libkf5waylandclient5 libkf5waylandserver5 libkf5xmlgui-bin libkf5xmlgui-data
libkf5xmlgui5 libkscreenlocker5 libkwin4-effect-builtins1 libkwineffects11
libkwinglutils11 libkwinxrenderutils11 libqgsttools-p1 libqt5designer5
libqt5help5 libqt5multimedia5 libqt5multimedia5-plugins
libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5opengl5
libqt5quickwidgets5 libqt5sql5 libqt5test5 libxcb-composite0 libxcb-cursor0
libxcb-damage0 os-prober python3-dbus.mainloop.pyqt5 python3-icu python3-pam
python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtwebkit
qml-module-org-kde-kquickcontrolsaddons qml-module-qtmultimedia
qml-module-qtquick2 rdate tasksel tasksel-data
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 266 not upgraded.
it is already installed
should i uninstall python 3 and again install python3-dev?
Hi,
python3-dev is already the newest version (3.6.7-1~18.04).
The package you installed is for python 3.6.
Since you install EfficientDet with python3.7, please install the dev package for python 3.7.
$ sudo apt install python3.7-dev
Thanks.
system
Closed
April 12, 2023, 5:18am
11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.