View on GitHub

gssi-training

VSC training: Getting Scientific Software Installed

Python’s pip+venv and alternatives

This exercise aims to give you hands-on experience with installing Python packages and contrasting some different approaches. It should take approximately 30 minutes to an hour to complete (potentially more when also conducting the benchmark exercises). To get started, choose a Python package that has at least one non-trivial dependency (meaning a dependency that is not part of the Python standard libary) and ideally includes some non-Python source code (which is then typically connected to the Python package with cython or f2py). It is recommended to choose a Python package related to your area of research, but if you are really lacking inspiration, you can complete this exercise using the astropy package.

You can find the relevant documentation in the “Python’s pip+venv” section of the GSSI training material and in the Python package management section on VSCDocs.

Here are the different methods you can use to install astropy on a VSC cluster:

NOTE: Make sure to keep the different installations separated, mixing approaches will likely cause problems

After trying the different installation approaches, compare them with respect to the following characteristics: