3

I am using Spyder(Anaconda) on Mac for Python development. I also have installed PySpark on my machine, which i use from the terminal. Is it possible to use both of them in Spyder, or somehow manage to import the spark context into my python 2.7?

0

1 Answer 1

0

yes it is possible just install

pip install findspark

then run

findspark.init()

https://stackoverflow.com/a/34763240

then try to import pyspark if it works then good or else add pyspark to pythonpath & try again

# Add the PySpark classes to the Python path:
export PYTHONPATH=$SPARK_HOME/python/:$PYTHONPATH
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.