Import hail as hl not working

ipython-input-1-90be69de01e3> in
----> 1 import hail as hl

~/anaconda3/lib/python3.8/site-packages/hail/init.py in
29 # F401 ‘.expr.*’ imported but unused
30 # E402 module level import not at top of file
—> 31 from .table import Table, GroupedTable, asc, desc # noqa: E402
32 from .matrixtable import MatrixTable, GroupedMatrixTable # noqa: E402
33 from .expr import * # noqa: F401,F403,E402

~/anaconda3/lib/python3.8/site-packages/hail/table.py in
2 import itertools
3 import pandas
----> 4 import pyspark
5 from typing import Optional, Dict, Callable
6

~/anaconda3/lib/python3.8/site-packages/pyspark/init.py in
49
50 from pyspark.conf import SparkConf
—> 51 from pyspark.context import SparkContext
52 from pyspark.rdd import RDD, RDDBarrier
53 from pyspark.files import SparkFiles

~/anaconda3/lib/python3.8/site-packages/pyspark/context.py in
29 from py4j.protocol import Py4JError
30
—> 31 from pyspark import accumulators
32 from pyspark.accumulators import Accumulator
33 from pyspark.broadcast import Broadcast, BroadcastPickleRegistry

~/anaconda3/lib/python3.8/site-packages/pyspark/accumulators.py in
95 import socketserver as SocketServer
96 import threading
—> 97 from pyspark.serializers import read_int, PickleSerializer
98
99

~/anaconda3/lib/python3.8/site-packages/pyspark/serializers.py in
69 xrange = range
70
—> 71 from pyspark import cloudpickle
72 from pyspark.util import _exception_message
73

~/anaconda3/lib/python3.8/site-packages/pyspark/cloudpickle.py in
143
144
→ 145 _cell_set_template_code = _make_cell_set_template_code()
146
147

~/anaconda3/lib/python3.8/site-packages/pyspark/cloudpickle.py in _make_cell_set_template_code()
124 )
125 else:
→ 126 return types.CodeType(
127 co.co_argcount,
128 co.co_kwonlyargcount,

TypeError: an integer is required (got type bytes)

pyspark, which is a Python dependency of Hail, is incompatible with python 3.8. Versions 3.6 and 3.7 should work.