Installation issues are not subject of the source code!
You define your dependencies properly inside the setup.py
of your package
using the install_requires
configuration.
That's the way to go...installing something as a result of an ImportError
is kind of weird and scary. Don't do it.