Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with pip install scikit-image

I am using Windows 8.1 64 bit and Python 2.7. While trying to install scikit-image from the shell

pip install scikit-image

I have encountered this error:

Command "python setup.py egg_info" failed with error code 1 in c:\users\france~1\appdata\local\temp\pip-buildtksnfe\scikit-image\

The download is fine but the installation fails. What is the problem here and how to solve it?

EDIT

After upgrading my pip with

python -m pip install -U pip setuptools

and trying again, I got:

Command "python setup.py egg_info" failed with error code 1 in c:\users\france~1\appdata\local\temp\pip-build-nbemct\scikit-image\

What is wrong?

like image 918
FaCoffee Avatar asked Jul 27 '16 09:07

FaCoffee


People also ask

Can we install scikit-learn using pip?

Using such an isolated environment makes it possible to install a specific version of scikit-learn with pip or conda and its dependencies independently of any previously installed Python packages.

Is scikit-image same as Skimage?

scikit-image (a.k.a. skimage ) is a collection of algorithms for image processing and computer vision.


1 Answers

install numpy first

pip install numpy

If you face installation issues for numpy, get the pre-built windows installers from http://www.lfd.uci.edu/~gohlke/pythonlibs/ for your python version (python version is different from windows version).

numpy 32-bit: numpy-1.11.1+mkl-cp27-cp27m-win32.whl

numpy 64-bit: numpy-1.11.1+mkl-cp27-cp27m-win_amd64.whl

Microsoft Visual C++ 9.0 is required. If you need VC++ 9.0, then please get it from this link: Microsoft VC++ 9.0 download

Then install

pip install scikit-image

It will install the below list before installing scikit-image

pyparsing, six, python-dateutil, pytz, cycler, matplotlib, scipy, decorator, networkx, pillow, toolz, dask

If it fails at installation of scipy, follow below steps: get the pre-built windows installers from http://www.lfd.uci.edu/~gohlke/pythonlibs/ for your python version (python version is different from windows version).

Scipy 32-bit: scipy-0.18.0-cp27-cp27m-win32.whl

Scipy 64-bit: scipy-0.18.0-cp27-cp27m-win_amd64.whl

If it fails saying whl is not supported wheel on this platform , then upgrade pip using python -m pip install --upgrade pip and try installing scipy

Now try

pip install scikit-image

It should work like a charm.

like image 172
be_good_do_good Avatar answered Oct 17 '22 04:10

be_good_do_good