Failing pip_install('scikit-image') on Slicer 4.13.0-2021-09-26 due to missing python-real.exe

This worked just fine for me previously on the stable version. This is the initial error message I get:

error: Application does NOT exists [C:/Users/mikeb/AppData/Local/NA-MIC/Slicer 4.13.0-2021-09-26/bin/./python-real.exe]

Followed by

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Users\mikeb\AppData\Local\NA-MIC\Slicer 4.13.0-2021-09-26\bin\Python\slicer\util.py", line 2925, in pip_install
    _executePythonModule('pip', args)
  File "C:\Users\mikeb\AppData\Local\NA-MIC\Slicer 4.13.0-2021-09-26\bin\Python\slicer\util.py", line 2900, in _executePythonModule
    logProcessOutput(proc)
  File "C:\Users\mikeb\AppData\Local\NA-MIC\Slicer 4.13.0-2021-09-26\bin\Python\slicer\util.py", line 2869, in logProcessOutput
    raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['C:/Users/mikeb/AppData/Local/NA-MIC/Slicer 4.13.0-2021-09-26/bin/../bin\\PythonSlicer.EXE', '-m', 'pip', 'install', 'scikit-image']' returned non-zero exit status 1.

There is, in fact, no python-real.exe in the referenced folder. Should there be?

pip_install('scikit-image') works for me on Windows with 4.13.0-2021-09-27, and python-real.exe exists on my computer here: c:\Users\andra\AppData\Local\NA-MIC\Slicer 4.13.0-2021-09-27\bin\python-real.exe.

The most likely culprit for a missing executable is a hyper-active antivirus software. Check your quarantined files. Not using third-party antivirus software or disabling automatic file delete/quarantine on the Slicer install folder and then reinstalling Slicer should fix the problem.

1 Like

Thank you!! The problem was that Avast antivirus had quarantined the executable. I’m confused why it didn’t tell me about it though. I would have had a hard time figuring this out on my own.

1 Like