Here is a Python code solution that will return a list of modules installed. One can easily modify the code to include version numbers.
import subprocessimport sysfrom pprint import pprintinstalled_packages = reqs = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze']).decode('utf-8')installed_packages = installed_packages.split('\r\n')installed_packages = [pkg.split('==')[0] for pkg in installed_packages if pkg != '']pprint(installed_packages)