I am trying to intall SCT on my laptop with Windows.
I downloaded and ran Pyton and GIT as instructed, but when attempting to run SCT 5.7 after downloading I get the following message in the Command Prompt:
### Downloading SCT source code (@5.7) to \Users\tjchr\spinalcordtoolbox...
'git' is not recognized as an internal or external command,
operable program or batch file.
Failed with error #1.
Press any key to continue . . .
And then when pressing any key the command window disappears.
Any advice much appreciate.
Thank you
Hi @TJC1983,
Thank you for posting on the forum! Iâm sorry to hear that youâre experiencing difficulties, but Iâm happy to help here.
To start, could you please try opening your Command Prompt, then navigate to the folder that contains the install script, then run the following command:
git --version && install_sct-5.7_win.bat
Then, could you share the output?
Thank you kindly,
Joshua
Iâm not sure what transpired, but it somehow worked the second time around.
Thank you and I am glad to be here on the forum!
1 Like
I am not sure if the installer is finished. The bottom line says âRunnning setup.py install for promise ⌠done.â And there is a blinking line below that. I donât see it giving me specific instructions to add SCT to PATH. Does it need more time or should I just try to type in âsct_check_dependenciesâ
â1. Once the installer finishes, follow the instructions given at the end of the Command Prompt window, which will instruct you to add SCT to your PATH.
2. Finally, in the Command Prompt window, type sct_check_dependencies
and press enter. Make sure that you see a status report containing all âOKsâ before continuing.â
Thank you!
Iâm glad to hear that your git
-related issues have resolved themselves!
âRunnning setup.py install for promise ⌠done.â
Just to double-check, do you mean âprotobuf
â instead of âpromise
â, by chance? (I ask because SCT doesnât depend on any packages called âpromiseâ, but it does use a package called âprotobufâ.)
Does it need more time or should I just try to type in âsct_check_dependenciesâ
The step that you describe isnât the end of the installer. When the installer finishes, you should instead see something like:
Itâs quite strange that the installer has frozen on the step that you describe. Normally each step shouldnât take too long; I would suggest anywhere from 3-5 minutes in total for the whole installation, depending on your hardware.
So, if it continues to stay frozen for some time, I would suggest cancelling the installation (Using âCtrl + Câ), then retrying the installation. It might just be a one-time glitch of some sort.
Kind regards,
Joshua