You can use virtualenv in python and it will install all packages you need into your virtualenv directory wherever you create it. Something like this should work (obviously you can call the directories whatever you want):

  1. mkdir python_venv (or what ever you want to call the directory)
  2. cd python_venv
  3. module load python/3.8.1 (or python/3.6.1 or some other python you need)
  4. python3 -m venv python381
  5. source python381/bin/activate
  6. pip install hello_world (pip, pip3 and pip3.8 is all the same here as you can see in the newly create bin directory)
  7. And when you are done you can deactivate it with python381/bin/deactivate or just log out (shortcut: ctrl+d)

The above example will create a python virtual environment where you can customize it like you want and have different versions of python etc. So it copies a small portion of python to your home directory where you can customize it. Then the module hello_world is installed with pip which in your case would probably be something more useful to your project.

You can read more about it here (and by google-ing) https://docs.python.org/3/tutorial/venv.html