pytest-selenium will work with Python >=3.7.
To install pytest-selenium using pip:
$ pip install pytest-selenium
To install from source:
$ python setup.py develop
To install pytest-selenium with Appium support:
$ pip install pytest-selenium[appium]