Migration guide

These pages list the breaking changes and deprecations of each release, and show the code changes required to upgrade.

8.0

A major breaking release. Process memory APIs were reorganized, many names deprecated, Python 3.6 and 3.7 dropped.

Migrating to 8.0
7.0

Process.memory_info_ex() removed, Python 2.7 dropped.

Migrating to 7.0
6.0

disk_partitions() lost two fields, process_iter() no longer checks for PID reuse, Process.connections() renamed.

Migrating to 6.0

Other releases

Release

What changed

7.1

FreeBSD 8 and SunOS 10 dropped, 32-bit wheels no longer published.

5.9

Python 2.6, 3.4 and 3.5 dropped.

5.7

Windows XP and Server 2003 dropped.

5.6

Process.memory_maps() removed on macOS (see Removing Process.memory_maps() on macOS).

5.4

psutil.OSX deprecated, Process.memory_info_ex() raises FutureWarning, Python 3.3 dropped.

5.3

raddr of UNIX sockets is "" instead of None, strings use the OS filesystem encoding (see Fixing Unicode across Python 2 and 3), Windows .exe installers no longer provided.

4.0

Process.memory_info() returns more fields, Process.memory_info_ex() deprecated.

3.0

APIs deprecated in 2.0 removed, some constants are enums.

2.2

Python 2.4 and 2.5 dropped.

2.0

Process properties turned into methods, get_* and set_* names renamed (see Porting your code to psutil 2.0).