Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Segmentation fault while importing sklearn

When I try to import scikit-learn in python, I get a segmentation fault

>>>import sklearn as sk
Segmentation fault (core dumped)

How do I fix this? I am running python 2.7.11 on Fedora. I installed sklearn using pip I tried the same using Anaconda on a virtual environment, with the same results.

The same problem doesn't occur on Ubuntu 16, which I ended up installing and using for my purposes.

like image 878
Nikhil Prabhu Avatar asked Sep 15 '26 00:09

Nikhil Prabhu


1 Answers

Do you have to use pip? Take a look at the anaconda method

conda install scikit-learn
like image 86
farmi Avatar answered Sep 17 '26 14:09

farmi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!