I’ve got a solid background in resolving these kinds of issues, and I’ve seen the “no module named Selenium” error pop up frequently. If pip install commands aren’t working due to permission issues, a solution that often works is using:
sudo -H pip3 install -U selenium
This command installs or upgrades Selenium with elevated privileges, ensuring it’s accessible system-wide for Python 3 projects. By doing so, you should be able to get rid of the “no module named Selenium” issue.