美文网首页
pip install psutil error

pip install psutil error

作者: 乔伊斯 | 来源:发表于2016-08-12 09:04 被阅读0次

pip install psutil error

安装psutil报错:

psutil/_psutil_linux.c:12:20: fatal error: Python.h: 没有那个文件或目录  #include                      ^ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

解决办法:

需要安装python的一个依赖包 python-dev

apt-get install python-dev

相关文章

网友评论

      本文标题:pip install psutil error

      本文链接:https://www.haomeiwen.com/subject/mawssttx.html