How to check what version of NuPIC is installed

This is a really useful command to check and find out what version of NuPIC and nupic.core you have installed on your computer:

python -c 'import pkg_resources;n=pkg_resources.get_distribution("nupic");b=pkg_resources.get_distribution("nupic.bindings");print n.project_name, n.version;print b.project_name, b.version'

I have this set as an alias in my .bashrc so I can just type nupic-version on the command line. To do that, add this line to your .bashrc:

nupic-version='python -c '\''import pkg_resources;n=pkg_resources.get_distribution("nupic");b=pkg_resources.get_distribution("nupic.bindings");print n.project_name, n.version;print b.project_name, b.version'\'
2 Likes