Have you ever cared to run a pip check
within AWS Glue? The simplest way is to do it like this:
import subprocess
import sys
subprocess.run([sys.executable, "-m", "pip", "check"], check=False)
You will notice that this doesn't succeed for Glue in Version 4 upon time of writing this. If this bothers you, just add gluefix
to the --additional-python-modules
parameter!