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
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.