Hail SPARK version error

Hi I want to install Hail in my ubuntu.
But when I run simple hail query, I got this message.
Could you give me some advice for me?
Thanks

This Hail JAR was compiled for Spark 3.1.3, cannot run with Spark 3.4.1.
The major and minor versions must agree, though the patch version can differ.

You need to install Apache Spark 3.1.3. You have Apache Spark 3.4.1. Try:

pip3 install pyspark==3.1.3