You can try importing them and then handle the ImportError if the module doesn’t exist.
try:
import numpy
except ImportError:
print "numpy is not installed"
You can try importing them and then handle the ImportError if the module doesn’t exist.
try:
import numpy
except ImportError:
print "numpy is not installed"