Trying to Install Sklearn on Python 3.8 Gives an Error

Just found this GitHub issue saying the following (16 days ago):

Python 3.8 is not officially supported by NumPy yet. We strongly suggest you stick with python 3.7 for now, until you see a 3.8 designation in the "Programming Language" section of the PyPI numpy page (probably several weeks) or until an Anaconda release with Python 3.8 is available (probably several months)

So it looks like it might be the underlying dependencies just not working with 3.8 yet. I actually had a similar issue with another package last week. You will probably have luck if you get a 3.7.5 install. Make sure you get the right platform (x86 for 32-bit, x64 for 64 bit) and make sure you check the box to add it to your path.

I'm guessing you're on Windows yes? If so then after the install open a powershell and enter gcm python and gcm pip to make sure they are being pulled from the 3.7 install. If not, you'll have to edit PATH in the system environment variables and move the new Python37 directory before Python38 in your PATH.

Hope that solves the issue!


Try to run pip install --pre -f https://sklearn-nightly.scdn8.secure.raxcdn.com scikit-learn. It worked for me.