之前在安装octoprint包时,遇到报错:
command: /home/zhanghu/env_2/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ILpkl2/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ILpkl2/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-b8sewS
cwd: /tmp/pip-install-ILpkl2/psutil/
中间省略。。。。。
regex_2/_regex.c:48:10: fatal error: Python.h: No such file or directory
48 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' fail