The easiest way is running the "pip show <library>" command in your environment which will return the detail of the library including the version.
$>pip show websocket-client
Alternatively, you may run "pip list" command which returns all dependencies name and versions.
pip list -o
is the command I frequently use to list all the outdated modules in the environment. Requires a more recent version of pip to work.