Selenium ModuleNotFoundError

Hi, I’m trying to run a code that opens I already pip installed selenium in my terminal. When I try to run the code it gives me modulenotfounderror: No module named ‘selenium’, but when i run the code in command terminal, it runs. I’m want to be able to run the script on atom not command terminal.