简体   繁体   English

在 centos 6.7 中安装最新的 psutil 版本

[英]install latest psutil version in centos 6.7

My system os version is (centos)6.7 with installed python version is 2.6.* When I tried to install a python module psutil with a command我的系统操作系统版本是(centos)6.7 ,安装的 python 版本是2.6.*当我尝试使用命令安装 python 模块psutil

yum install python-psutil

But the installed version is 0.3.6 something...但是安装的版本是0.3.6 的东西...

But the latest version of psutil module is 3.2.2但是psutil模块的最新版本是3.2.2

What might be the problem?可能是什么问题? How to solve it ?如何解决? Do I need to update python version ?我需要更新 python 版本吗?

or或者

Update psutil version ?更新 psutil 版本? If so how to install particular version of psutil ?如果是这样,如何安装特定版本的 psutil ?

This might not be a great question to ask, But Please give some suggestion what to do or Where I am going wrong ?这可能不是一个好问题,但请给出一些建议,或者我哪里出错了?

Python2蟒蛇2

yum install gcc python-devel
pip install psutil

Python3蟒蛇3

yum install gcc python3-devel
pip3 install psutil

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM