Fsl interface not working in conda environment

I have to run a python script involving nipype workflow for ICA. But FSL interfaces are not working in conda environments even when fsl is installed on host . Can anyone help me out with this? I have attached the output of running some dummy script using FSL SUSAN for reference.

Hi @Satwick and welcome to neurostars!

Try setting the FSLDIR environment variable in your script.

import os
os.environ['FSLDIR'] = '/path/to/fsldir' # replace with your own installation

Best,
Steven

Thanks for the help ,Steven. All I needed to do was explicitly add the PATH using os.environ after adding the FSLDIR , and it worked fine after that.
Regards,
Satwick

1 Like