How to install selenium package using pip on Windows XP?

user3703761 picture user3703761 · Jun 5, 2014 · Viewed 19.2k times · Source

I am running Windows XP SP3 where I installed Python-3.4.1. I want to install [selenium] webdriver2 package using pip. I set the path variable of python in the right way on Window XP, so using CMD I run successfully python command. However, when I run pip install selenium it says that my command is unkown. From this question, I saw that PIP is embedded in Python-3.4.1.

How can I install selenium package using pip (or any other means) ? Should I declare the path variable to pip ? If yes, where to find pip ?

Answer

user3702267 picture user3702267 · Jun 5, 2014

You can find pip in: Path_to_Python_Home_Directory\C:\Python34\Scripts\pip.exe
Since you added a path environment variable to Python, I suppose you know how to do it for pip :)
Now you can install selenium this way: Path_to_Python_Home_Directory\C:\Python34\Scripts\pip.exe install selenium, OR: pip install selenium if you set its path environment variable.

enter image description here

More details on here if you want.