# Error when installing scikit-image via Python Interactor

**URL:** <https://discourse.slicer.org/t/error-when-installing-scikit-image-via-python-interactor/2884>\
**Category:** Development\
**Tags:** python\
**Created:** [May 22, 2018, 5:55pm UTC](https://discourse.slicer.org/t/error-when-installing-scikit-image-via-python-interactor/2884 "2018-05-22T17:55:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codymorris](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@codymorris](https://discourse.slicer.org/u/codymorris)\
**Post date:** [May 22, 2018, 5:55pm UTC](https://discourse.slicer.org/t/error-when-installing-scikit-image-via-python-interactor/2884/1 "2018-05-22T17:55:10Z")

</div>

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/:](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

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 22, 2018, 6:29pm UTC](https://discourse.slicer.org/t/error-when-installing-scikit-image-via-python-interactor/2884/2 "2018-05-22T18:29:23Z")

</div>

See this topic for explanation: [Slicer-Python Packages Use and Install](https://discourse.slicer.org/t/slicer-python-packages-use-and-install/984/9)

---

<div class="post-metadata">

**Author:** ![codymorris](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@codymorris](https://discourse.slicer.org/u/codymorris)\
**Post date:** [May 22, 2018, 6:40pm UTC](https://discourse.slicer.org/t/error-when-installing-scikit-image-via-python-interactor/2884/3 "2018-05-22T18:40:24Z")

</div>

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/:](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

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 22, 2018, 7:13pm UTC](https://discourse.slicer.org/t/error-when-installing-scikit-image-via-python-interactor/2884/4 "2018-05-22T19:13:11Z")

</div>

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](https://stackoverflow.com/questions/16370583/pip-issue-installing-almost-any-library), updating pip, or [configuring pip to work correctly behind a proxy server/firewall](https://stackoverflow.com/questions/21468550/pip-not-working-behind-firewall).
