Skip to content Skip to sidebar Skip to footer

Why I Cannot Import Linear Model Form Scikit-learn 0.16.1?

I have just update my sklearn to version 0.16.1. As a result, if I try to import: from sklearn import linear_model I get the following error message: Traceback (most recent call l

Solution 1:

The problem has been resolved by the following steps:

  1. Uninstalling scikit-learn.
  2. Manually delete sklearn directory in the /usr/local/lib/python2.7/dist-packages/ directory.
  3. pip install the newest version of the scikit-learn.

However, I got another problem by doing that (Illegal instruction (core dumped)). More details can be found here.

Post a Comment for "Why I Cannot Import Linear Model Form Scikit-learn 0.16.1?"