Click the API Reference: https://www.selenium.dev/selenium/docs/api/py/api.html link to see all the commands for the api
pip3 install selenium
Maek a directory and venv for this
python -m venv venv
source venv/bin/activate
Follow the instructions for install from this same page from above, further down the page https://pypi.org/project/selenium/
I'm doing, this without python3 or pip3 to see if it works
cd ~/selenium-projects
python -m venv venv
source venv/bin/activate
pip install -U selenium
Im using the above but this too is option for latest
pip install -U --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ selenium
normal, pip and python worked for above, To check selenium use
show selenium
**The above didn't work on MAC you need to use
pip show selenium
it shows that it is located within the venv/lib