安装psutil模块报错
程序员文章站
2022-07-14 10:04:43
...
报错
pip3.6 install psutil
......
psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9jw64fer/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-kde7ez07-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-9jw64fer/psutil/
You are using pip version 8.1.2, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
解决方法:
yum install python36-devel
上一篇: python psutil模块
下一篇: 设计模式读书笔记之单例模式
推荐阅读
-
Windows下为Python安装Matplotlib模块
-
解决Unixbench安装报错信息的问题
-
npm全局模块卸载及默认安装目录修改方法
-
Python的自动化部署模块Fabric的安装及使用指南
-
CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法
-
SQL2005打SP4补丁报错:无法安装Windows Installer MSP文件解决方案
-
Apache加速模块mod_pagespeed安装使用详细介绍
-
Apache防DDOS模块mod_evasive安装和配置方法详解
-
安装SQLServer2005 Management Studio报错怎么办
-
sqlserver安装报错:an error was encountered 数据无效