We recommend that you do not follow the default installation instructions for gradunwarp
, due to the reasons outlined here.
Instead, we provide our own set of steps to help make the installation process smoother.
- Install the dependencies of
gradunwarp
pip install numpy scipy nibabel
-
Download and extract the latest release of
gradunwarp
-
Navigate to the extracted folder, then install
gradunwarp
cd gradunwarp-1.2.0/
python setup.py install --prefix="~/.local"
- Update your
$PATH
to include the installation location
# For bash users
echo "export PATH=$PATH:~/.local/bin" >> ~/.bashrc
# For zsh users
echo "export PATH=$PATH:~/.local/bin" >> ~/.zshrc
- You're done! The command
gradient_unwarp.py
should now be available in your terminal after restarting the terminal.