0

I'm running selenium on linux (ubuntu) but I beleive it is an old version. Can someone tell me whether there's an easy way to update selenium on ubuntu using command line? I couldn't find anything online explaining how to do this?

Thanks.

1
  • sudo apt-get install --only-upgrade <packagename> will upgrade only specified package. Aug 19, 2021 at 5:59

1 Answer 1

2

Selenium is easy to update. You either have it installed from apt or from pip. There are two ways, depending on how you installed the package

If you have installed selenium via pip (python)

pip install selenium --upgrade

If you have installed selenium via the package manager, then do

For Python 2.7

apt-get install --only-upgrade python-selenium

For Python 3.*

apt-get install --only-upgrade python3-selenium

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .