Although installed as a dependency, the `pip` executable is not found after running `spack install`.
## Prerequisites
Activate the fenicsx environment and re-install pip explicitly
First, create a Spack environment and install dolfinx following the instructions in https://git.lwp.rug.nl/chimera/habrok_hpc/-/wikis/Installing-dolfinx-with-spack-on-Habrok. We assume the environment is called `fenicsx`.
## Installation and setup
Clone the `nsx` git repository, here to the home directory:
```sh
module load GCC
spack env activate fenicsx
srun -n 1 spack install--add py-pip
cd&& git clone https://git.lwp.rug.nl/chimera/nsx
```
Clone the nsx git repo, here to the home directory:
We will install `nsx` and its dependencies in a python [virtual environment](https://docs.python.org/3/tutorial/venv.html)(venv). Virtual environments allow us to install multiple versions of packages in an isolated fashion, avoiding conflicts. Create a `venv` called `fenicsx` in the folder `~/venv` (entirely arbitrary), *using python of the spack env*:
Alternatively, run this case via the sbatch job file [jobs/nsx_test.sh](https://git.lwp.rug.nl/chimera/habrok_hpc/-/blob/main/jobs/nsx_test.sh). If `nsx` was installed in a virtual environment, activate it in the job file.
An example sbatch job file for this case is set up in [jobs/nsx_test.sh](https://git.lwp.rug.nl/chimera/habrok_hpc/-/blob/main/jobs/nsx_test.sh). The job file assumes that `nsx` was installed in a virtual environment as explained above.