Checking the version of Python module

With PIP, you can list all module versions with the following command:

Check versions of the selected modules

The problem with displaying all these modules occurs when there are dozens or even hundreds of them on the particular machine.

If you know the name of a module to check, you can use additional parameters: findstr for Windows and grep for Linux.

Windows

For Windows, this command looks like this and it’s case sensitive.

In my case, the command will return the following result:

If you want to return multiple results, you can use module names in double-quotes, separated by space.

In the case of my system, this command returns versions of three modules:

Linux

Instead of findstr, Linux uses grep to search for results:

This command will display:

If you want to search for multiple modules use the following command:

This result (on my computer) returns this result:

It didn’t return the numpy version, because there is no numpy module on the machine.