‘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.