Search code examples
pythonpython-3.xinstallationpippython-3.9

Python 3.9: installing scikit-learn fails on Windows


I'm trying to install "mlxtend"

pip install mlxtend 

via command prompt but it shows a lot of errors. I've gone throw all of them but couldn't understand the reason behind the failure. Please help me to resolve this issue?

Screenshot: enter image description here


Solution

  • You are trying to install scikit-learn which fails to install with Python 3.9 on Windows because it detects the OS as AIX and as such fails to build.

    The details of the issue: https://github.com/scikit-learn/scikit-learn/issues/18621

    A way around before there is a new version of the library that successfully installs you can use (to install the release candidate):

    pip install --pre -U scikit-learn