Error running sct_check_dependencies

Hi. I get the following error when running sct_check_dependencies, after installing SCT on Ubuntu 18.04.3. Could you please advice me on what I should do? Thanks!
~/sct_4.2.1/scripts$ python
Traceback (most recent call last):
File “”, line 30, in
import sct_utils as sct
File “/home/neurology/sct_4.2.1/scripts/”, line 43, in
from spinalcordtoolbox import version, sct_dir, data_dir
ImportError: No module named spinalcordtoolbox


SCT uses its own Python virtual environment (with specific requirements specified in the file $SCT_DIR/requirements.txt). When calling SCT’s scripts via your default Python you are using your own Python environment, hence the error you experienced. To call SCT command, just call the scripts like that:


Thanks for your help!

1 Like