‘Process’ object has no attribute ‘get_memory_info’

当我在 Ubuntu 16.04 服务器版下通过 apt 安装 memory_profiler, 使用时报了这个错误.

后来我改用, pip 直接安装, 这个问题就别解决了

pip install psutil
pip install memory_profiler

When I using apt-get to install the memory_profiler under the Ubuntu 16.04 server, it raised this error.
I try to install memory_profiler by using pip, the problem resolved.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.