question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sklearn installation via pip in python 3.10 linux (ubuntu 20.04 dist) never finishes

See original GitHub issue

Describe the bug

Can’t install scikit-learn in Ubuntu 20.04 using Python 3.10

Steps/Code to Reproduce

pip install -U scikit-learn

Expected Results

Installation would run successfully

Actual Results

Build dependencies installation never finishes

image

Versions

Python 3.10 pip 21.2.3

can’t install latest version 1.0.1 from sklearn

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

6reactions
glemaitrecommented, Nov 25, 2021

We don’t provide a wheel for Python 3.10 (xref: https://github.com/scikit-learn/scikit-learn/issues/21401) The next bugfix release will be shipping this wheel (around mid-December).

In your traceback, pip is trying to build scikit-learn from source and you are probably missing some packages or compilers in this regard (which is normal since that you are not intended to build from source).

So you can either downgrade to Python 3.9 and things will get fixed pretty soon.

2reactions
glemaitrecommented, Jan 24, 2022

Ups sorry I did not check this one (I am actually back to my unread emails 😃). Let me review and merge your PR if the rendering is fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pip is not working for Python 3.10 on Ubuntu - Stack Overflow
I have tried doing sudo apt-get install python3.10-html5lib it downloaded something but it did not fix the error. How should I fix this...
Read more >
How do I upgrade my python installation, and pip? - Ask Ubuntu
I tried running a script with this command: python3.10 myscript.py but this fails because this script is using the websockets package. If I...
Read more >
Introduction to Python: Getting Started
Installing Python Packages. The best option is to use the standard Python package manager, “pip” (aka “pip3” for Python 3), for installing packages ......
Read more >
How To Install Python 3.10 on Ubuntu 20.04|18.04
Ensure that your system is updated and the required packages installed. sudo apt update && sudo apt upgrade -y. Option 1 – Install...
Read more >
Packages for 64-bit Linux on x86_64 CPUs with Python 3.8
Name Version Summary / License _libgcc_mutex 0.1 Mutex for libgcc and libgcc‑ng / None _openmp_mutex 5.1 OpenMP Implementation Mutex / BSD‑3‑Clause aiofiles 0.7.0 File support for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found