Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
2.1k views
by
I am getting below error while installing selenium python.

 

SyntaxError: invalid syntax
>>> install selenium
  File "<stdin>", line 1
    install selenium
                   ^

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)

pip is the command which has to be run from the command line, not from the python interpreter. pip command actually helps in installing module.

For windows, it is usually found under your <python installation directory>\Scripts

 

so if you have installed Python 3.4 at C:, your command wil be

C:\Python34\Scripts\pip.exe install selenium

 

Hope that helps.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...