What\'s a good way to check if a package is installed while within a Python script? I know it\'s easy from the interpreter, but I need to do it within a script.
I g
Go option #2. If ImportError is thrown, then the package is not installed (or not in sys.path).
ImportError
sys.path