-bash: pyspark: command not found



I am trying to install Spark and Pyspark using the .tar file of spark. After extracting all the files from spark-2.4.0-bin-hadoop2.7.tar , I tried checking the installation of Pyspark but the error occurs on the terminal. " -bash: pyspark: command not found".

I am using the following versions:

Java 8, python 2.7, spark 2.4, MacOs Mojave(4 GB ram).

Please let me know the solution to fix this issue.

Thank you


Please follow this blog to setup the environment on mac os