- Create a conda environment with python 3.13
conda create -n pyxalign python=3.13then activate the environment
conda activate pyxalignInstall astra-toolbox and CuPy from conda-forge:
conda install -c conda-forge astra-toolbox
conda install -c conda-forge cupyInstalling these libraries from conda-forge instead of pip ensures that required CUDA toolkit is installed.
Create an editable, developer installation of pyxalign:
git clone https://github.com/AdvancedPhotonSource/pyxalign.git
cd pyxalign
pip install -e ".[dev]"Install the latest version of pyxalign from PyPI:
pip install pyxalign- Clone the pyxalign git repo
git clone https://github.com/AdvancedPhotonSource/pyxalign.git
cd pyxalign- Build the container image
podman build -t pyxalign:latest .- Run the container
podman run \
-it --rm --env DISPLAY --security-opt label=type:container_runtime_t \
--network host -v="$HOME/.Xauthority:/root/.Xauthority:rw" \
--device nvidia.com/gpu=all \
pyxalign:latest bashAny directories you need access to inside the container must be explicitly mounted using the -v flag:
-v /path/on/host:/path/in/containerFor example, to mount your data directory:
podman run \
-it --rm --env DISPLAY --security-opt label=type:container_runtime_t \
--network host -v="$HOME/.Xauthority:/root/.Xauthority:rw" \
-v /data/my_experiment:/data/my_experiment \
--device nvidia.com/gpu=all \
pyxalign:latest bash