I downloaded apache pyspark through brew download and also tried download directly from https://spark.apache.org/. But after download I tried type "pyspark" directly in terminal and countered this errors. enter image description here
I also tried all the steps that are available in this manual: https://medium.com/@GalarnykMichael/install-spark-on-mac-pyspark-453f395f240b. But also get error when run spark in jupyter notebook, which are: