If you have tried to install pyspark through both pip and anaconda then you might face this problem
Try creating a new conda environment and dont use pip this time to install pyspark just install pyspark throught conda.