Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to use spyder anaconda3

How to use spyder anaconda3

Explorer

Hello,

 

I'm using spyder in the Anaconda distribution to execute instruction by instruction a .py.

 

In my .py I have the instruction

 

 

from pyspark.mllib.clustering import KMeans, KMeansModel

 

But when I execute this instruction I get the error

 

ImportError: No module named 'pyspark'

 

How do I have to configure spyder to work with pyspark?

 

Thanks  in advance

 

Carlota Vina

1 REPLY 1

Re: How to use spyder anaconda3

Master Collaborator

This is really a spyder question, not Pyspark, but you will likely need to use spyder in your Pyspark app. If spyder is a separate interpreter, then configure Pyspark to use it as the interpreter. See the Pyspark docs.