How to check version of python modules

I suggest using pip in place of easy_install. With pip, you can list all installed packages and their versions with

In most linux systems, you can pipe this to grep to find the row for the particular package you’re interested in:

For an individual module, you can try the __version__ attribute, however there are modules without it:

Lastly, as the commands in your question are prefixed with sudo, it appears you’re installing to the global python environment. Strongly advise to take look into python virtual environment managers, for example virtualenvwrapper


Also published on Medium.

Leave a Reply

avatar
  Subscribe  
Notify of