简体   繁体   中英

No module psutil.error

I have the following error:

  File "/usr/local/lib/python2.7/dist-packages/a8/terminals.py", line 11, in <module>
    import psutil, psutil.error
ImportError: No module named error

psutil is installed.

psutil has NoSuchProcess , AccessDenied and TimeoutExpired exceptions. There is class Process in psutil but error is not valid attribute for psutil .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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