The script needs to be executed with the Python-executable of the environment you want to list packages for. You can make the script work in multiple python ...
the function will attempt to install the missing package. This patch works for Python scripts run on the command line as well as the interactive interpreter. When running a script with a missing ...