Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named Selenium

Even after successfully installing selenium-2.48.0 I am getting an error on importing the selenium package

    >>> from Selenium import webdriver
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ImportError: No module named selenium

and when I try to install selenium again using pip install selenium it shows the error:

    Requirement already up-to-date: selenium in /usr/local/lib/python3.4/dist-packages
like image 448
Tejesh Raut Avatar asked Aug 09 '26 13:08

Tejesh Raut


2 Answers

Sure, there is no module named Selenium.

But, hopefully, there is one named selenium.

like image 134
alecxe Avatar answered Aug 11 '26 01:08

alecxe


I was using python 2 instead of python 3 Thanks @Kamejoin to figure it out in comments

like image 35
Tejesh Raut Avatar answered Aug 11 '26 03:08

Tejesh Raut