3

Good evening everyone,

I have an issue with scikit-image while installing this package I installed python 3.11 on windows 11

pip install scikit-image

I got these issues as below in the screenshot got

previous issue

EDIT:

I installed Microsoft C++ 14 but I got another issue at the below screenshot enter image description here

Emad Uones
  • 69
  • 7

1 Answers1

4

The issue is that no wheels are available for scikit-image for Python 3.11

Python libraries can have code that is not written in Python (like C, C++, FORTRAN, Rust, ...) and in order to use those, you need to compile that code for your version of Python, your OS and CPU architecture.

Fortunately, Python offers a packaging mechanism known as wheel to provide that precompiled code. Package maintainers can generate those wheels to avoid the end user having to compile it from sources.

In your case, as Python 3.11 just got out (beginning of the week), the maintainers of scikit-image didn't have the time to package the wheel and pip tries to install it from sources (hence the message asking you to install Microsoft Visual C++ 14).

Your options are:

Coding thermodynamist
  • 1,340
  • 1
  • 10
  • 18
  • Yeh that's the first issue I got But I solved it by installing the c++ But I got another one at this image link https://ibb.co/9vpw86L @Nathan – Emad Uones Oct 28 '22 at 15:22
  • No, you didn't solve the first issue by installing the compiler, you are just failing a bit later in the installation from sources. Pip detect that something is lacking and tries to build it from source with default arguments that are not the right one as it can be project specific. Compiling from source is a complicated process (that's why wheels exist) and I unless you absolutely need to use that version of Python immediately, I would just wait for wheels to be released for `scikit-image`: it is currently tracked here: https://github.com/scikit-image/scikit-image/issues/6517 – Coding thermodynamist Oct 28 '22 at 15:37