check numpy version with pip code example Example: check numpy version import numpy print(numpy.version.version)