Sklearn installation via pip in python 3.10 linux (ubuntu 20.04 dist) never finishes
See original GitHub issueDescribe 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
Versions
Python 3.10 pip 21.2.3
can’t install latest version 1.0.1 from sklearn
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 buildscikit-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.
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.