Error: No module named 'findspark'

0 votes

Hi Guys,

I am trying to integrate Spark with Machine Learning. For that I want to use findspark module. But it shows me the below error.

>>> import pyspark
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'findspark'
May 6 in Apache Spark by akhtar
• 25,030 points
1,159 views

1 answer to this question.

0 votes

Hi@akhtar,

To import this module in your program, make sure you have findspark installed in your system. It is not present in pyspark package by default. To install this module you can use this below given command.

$ pip install findspark
answered May 6 by MD
• 56,480 points

Related Questions In Apache Spark

0 votes
1 answer

Getting error while connecting zookeeper in Kafka - Spark Streaming integration

I guess you need provide this kafka.bootstrap.servers ...READ MORE

answered May 24, 2018 in Apache Spark by Shubham
• 13,450 points
1,284 views
0 votes
1 answer
0 votes
1 answer

Spark streaming with Kafka dependency error

Your error is with the version of ...READ MORE

answered Jul 5, 2018 in Apache Spark by Shubham
• 13,450 points
436 views
0 votes
1 answer

Error while using Spark SQL filter API

You have to use "===" instead of ...READ MORE

answered Feb 4, 2019 in Apache Spark by Omkar
• 69,030 points
94 views
+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 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,357 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,800 points
1,010 views
0 votes
1 answer

ImportError: No module named 'pyspark'

Hi@akhtar, By default pyspark in not present in ...READ MORE

answered May 6 in Apache Spark by MD
• 56,480 points
1,341 views
0 votes
1 answer

env : R : No such file or directory

Hi@akhtar, I also got this error. I am able to ...READ MORE

answered Jul 21 in Apache Spark by MD
• 56,480 points
239 views