Can t import scikit -learn on python3

0 votes

Hi Guys,

I am trying to import Sklearn in Jupyter Notebook. But it is showing me the below error.

C:\Users\Nadeem\AppData\Local\Programs\Python\Python36-32\python.exe "F:/Python/code/"
Traceback (most recent call last):
  File "F:/Python/code/", line 21, in <module>
    import sklearn
  File "C:\Users\Nadeem\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sklearn\", line 134, in <module>
    from .base import clone
  File "C:\Users\Nadeem\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sklearn\", line 12, in <module>
    from .utils.fixes import signature
  File "C:\Users\Nadeem\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sklearn\utils\", line 11, in <module>
    from .validation import (as_float_array,
  File "C:\Users\Nadeem\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sklearn\utils\", line 18, in <module>
    from ..utils.fixes import signature
  File "C:\Users\Nadeem\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sklearn\utils\", line 144, in <module>
    from scipy.sparse.linalg import lsqr as sparse_lsqr  # noqa
  File "C:\Users\Nadeem\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scipy\sparse\linalg\", line 117, in <module>
    from .matfuncs import *
  File "C:\Users\Nadeem\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scipy\sparse\linalg\", line 19, in <module>
    import scipy.special
  File "C:\Users\Nadeem\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scipy\special\", line 640, in <module>
    from ._ufuncs import *
ImportError: DLL load failed: The specified procedure could not be found.

Jun 23, 2020 in Python by akhtar
• 38,210 points

1 answer to this question.

0 votes


First, remove the Sklearn form your Windows system by using the below-given command.

$ pip uninstall scikit-learn

Again reinstall Sklearn using the below-given command.

$ pip install -U scikit-learn
answered Jun 23, 2020 by MD
• 95,320 points

Related Questions In Python

+1 vote
1 answer

How to estimate number of clusters through EM in scikit-learn

For future reference, the fixed function looks ...READ MORE

answered Sep 26, 2018 in Python by Priyaj
• 58,140 points
0 votes
1 answer

Can't import tkinter

You can Try this code to import ...READ MORE

answered May 21, 2019 in Python by SDeb
• 13,300 points
0 votes
4 answers

Install Python3 on Mac

Prerequisites You will need a macOS computer with ...READ MORE

answered Dec 15, 2020 in Python by Roshni
• 10,480 points
0 votes
1 answer

Error:Python3.4 can't install mysql-python

Hello @kartik, You can resolved this by the ...READ MORE

answered Jun 24, 2020 in Python by Niroj
• 82,880 points
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,479 views
0 votes
1 answer
0 votes
1 answer