在编译PX4固件中python包出了问题,按照提示进行操作会显示安装包已达到要求。
Building wheel for psutil (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3dlegduz/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3dlegduz/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-3fukw8y1 --python-tag cp35
解决方案:
$ sudo apt install python-dev
$ sudo apt install python3-dev