Linux下psutil 安装失败

错误:
psutil/_psutil_common.c:9:20: fatal error: 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
Running setup.py install for psutil … error
ERROR: Command errored out with exit status 1:

解决办法:
安装python开发包:
sudo apt-get install python3.6-dev

你可能感兴趣的:(Linux下psutil 安装失败)