Added a comment that the environment must be "clean" (using module purge), which is not the case when entering a terminal via Jupyter.
module purge