i am a newbie to python selenium and stumbled into a problem.
I installed selenium using pip sudo pip install selenium
and it worked quiet fine.
But when I try to import selenium in my project using from selenium import WebDriver
Python throws an error.
I had installed python 2.7 and updated to python 3.7.3.
I checked the place where pip installed selenium and it is in library/Python/python2.7
. However there is no folder 3.7.3 where I could drag and drop those files.
Betriebssystem:
MacOS Mojave
Python Code:
from selenium import webdriver
driver = webdriver.Chrome('driver/chromedriver')
driver.get('https://www.google.com/')
Python Fehlermeldung:
Traceback (most recent call last):
File "/Users/christophriepe/Desktop/Integrationstest
Trainopedia/Integrationstest Trainopedia.py", line 1, in <module>
from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'
I guess it has something to do with the both versions of python I have installed. But im lost and have no idea how to solve this whole thing:(
Thank you guys in advance.