python 安装psutil,,在使用python组
python 安装psutil,,在使用python组
在使用python组件psutil时需要先安装,具体如下:
wget https://pypi.python.org/packages/source/p/psutil/psutil-2.0.0.tar.gz tar -xzvf psutil-2.0.0.tar.gz cd psutil-2.0.0 python setup.py install
安装的过程中可能报错如下:
psutil/_psutil_linux.c:421: error: expected specifier-qualifier-list before ?.yObject?psutil/_psutil_linux.c: In function ?.nit_psutil_linux?.psutil/_psutil_linux.c:470: error: ?.yObject?.undeclared (first use in this function)psutil/_psutil_linux.c:470: error: (Each undeclared identifier is reported only oncepsutil/_psutil_linux.c:470: error: for each function it appears in.)psutil/_psutil_linux.c:470: error: ?.odule?.undeclared (first use in this function)psutil/_psutil_linux.c:470: warning: implicit declaration of function ?.y_InitModule?psutil/_psutil_linux.c:470: error: ?.sutilMethods?.undeclared (first use in this function)error: command ‘gcc‘ failed with exit status 1
报错原因为没有安装python-devel导致,直接yum安装即可。
python 安装psutil
相关内容
- Python中的tuple,Pythontuple,tuple_lst
- Python pip 安装组件命令 以及下载速度慢的问题,python
- python-多线程:调用thread模块中的start_new_thread()函数来产
- Python定时模块之sched,Python模块之sched,一、sched模块
- python---django中orm的使用(4)字段,参数(on_delete重点)
- python面试题(四),python面试题,一、数据类型1、字典
- ArcGIS + Python 批量裁剪、添加X/Y坐标脚本,arcgispython,前
- python第一期,,python课时第一
- Python-类继承,,当在Python中出
- python使用和注意,python使用,错误:1.Your
评论关闭