Hi@akhtar,
This error occurs because your python version is not compatible with pyspark version. So check your python version and update accordingly using the below given command.
$ sudo ln -s /usr/bin/python3 /usr/bin/python
Hope this will help.
Thank You