提交 dcd01847 编写于 作者: N Nicolas Hennion

Check PsUtil > 0.4.0

上级 5d828684
......@@ -74,7 +74,20 @@ except ImportError:
print(_('# pip install psutil'))
print()
sys.exit(1)
try:
psutil.disk_io_counters()
except:
print(_('PsUtil > 0.4.0 is needed. Glances cannot start.'))
print()
print(_('On Ubuntu 12.04 or higher:'))
print(_('$ sudo apt-get install python-psutil'))
print()
print(_('To install PsUtil using pip (as root):'))
print(_('# pip install psutil'))
print()
sys.exit(1)
# International
#==============
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册