AttributeError NoneType object has no attribute find

0 votes

Hi Guys,

I am trying to import the Sklearn module in my python code. But it is showing me the below error.

from sklearn import datasets 
AttributeError: 'NoneType' object has no attribute 'find'

How can I solve this error?

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

1 answer to this question.

0 votes

Hi@akhtar,

It seems Sklearn is not installed properly in your system. You can use the below-given command to install sklearn.

$ pip3 install -U scikit-learn

Also, make sure you have installed NumPy and Scipy library.

$ pip3 install numpy 
$ pip3 install scipy

I hope this will help you.

answered Jun 23, 2020 by MD
• 95,320 points

Related Questions In Python

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error:AttributeError: 'NoneType' object has no attribute 'extend'

Hello @kartik, You can use itertools.chain(): import itertools list2d = [[1,2,3], ...READ MORE

answered Nov 18, 2020 in Python by Niroj
• 82,860 points
1,201 views
0 votes
1 answer

Getting AttributeError: 'module' object (scipy) has no attribute 'misc' in Python. How to solve this?

>>> import scipy >>> scipy.misc Traceback (most recent call ...READ MORE

answered Dec 24, 2018 in Python by Nymeria
• 3,540 points
6,700 views
0 votes
1 answer

How to rename columns in pandas (Python)?

You can use the rename function in ...READ MORE

answered Apr 30, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 8, 2020 by MD 790 views
0 votes
1 answer

What is the Difference in Size and Count in pandas (python)?

The major difference is "size" includes NaN values, ...READ MORE

answered Apr 30, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 8, 2020 by Gitika 1,609 views
0 votes
2 answers

Replacing a row in pandas data.frame

key error. I love python READ MORE

answered Feb 18, 2019 in Data Analytics by anonymous
9,872 views
0 votes
1 answer

Converting a pandas data-frame to a dictionary

Emp_dict=Employee.to_dict('records') You can directly use the 'to_dict()' function ...READ MORE

answered May 23, 2018 in Data Analytics by Bharani
• 4,620 points
3,659 views
+1 vote
3 answers

AttributeError: 'module' object has no attribute 'listen"

You'll have to install the pyaudio module ...READ MORE

answered Oct 3, 2019 in Python by Liala
3,092 views
0 votes
1 answer

AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'

Hi@akhtar, I think numpy version is not compatible ...READ MORE

answered Apr 13, 2020 in Python by MD
• 95,320 points
7,312 views