3

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
3
  • 1
    Are you using python3? The package is installed for python3 and you should get this error if you try to import in python2 Commented Oct 28, 2015 at 20:11
  • 2
    use python3 command on ubuntu to execute your files. Commented Oct 28, 2015 at 20:14
  • alecxe is right the name should be lower case Commented Oct 28, 2015 at 20:45

2 Answers 2

5

Sure, there is no module named Selenium.

But, hopefully, there is one named selenium.

Sign up to request clarification or add additional context in comments.

4 Comments

Sorry it was a typo mistake by me in the question the terminal displays : no module named selenium
I was wrong at the fact that I was using python 2 instead of python 3
Okay, thanks for sharing. I'll leave the answer as is, in case someone has this problem.
Made the same mistake haha. Thank you for this! Would've taken me ages to catch
2

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.