Error when installing scikit-image via Python Interactor

Hello all,

I am trying to install scikit-image into slicer so that I can use some of its histogram equalization and contrast stretching tools. When I go to install it (after updating pip to 10.0.1) I get errors (as seen below) for scikit-image in particular and may other python packages as well. Any suggestions would be appreciated. Thanks. As a side note, I have tried also installing from wheels and from zipped files but neither of those methods worked either.

Operating system: win10
Slicer version: Nightly 4.9.0-2018-05-20
Expected behavior: install scikit-image (and many other python packages)
Actual behavior:
pip.main([‘install’, ‘scikit-image’])
Collecting scikit-image
Could not fetch URL https://pypi.python.org/simple/scikit-image/: There was a problem confirming the ssl certificate: [Errno 2] No such file or directory - skipping
Could not find a version that satisfies the requirement scikit-image (from versions: )
No matching distribution found for scikit-image
1

See this topic for explanation: Slicer-Python Packages Use and Install

After trying the exact steps you mention I still get the same errors. Do you know what might be causing the inability to fetch the files/directories?

pip.main([‘install’, ‘requests’])
Collecting requests
Could not fetch URL https://pypi.python.org/simple/requests/: There was a problem confirming the ssl certificate: [Errno 2] No such file or directory - skipping
Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests
1

This works for me with the latest nightly build (starting Slicer as an admin):

import pip
pip.main(['install', 'requests'])

“There was a problem confirming the ssl certificate” is a generic pip error, not related to Slicer. You may be able to fix it by installing some additional security certificates, updating pip, or configuring pip to work correctly behind a proxy server/firewall.