Reputation:
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 ?
Upvotes: 4
Views: 19776
Reputation: 2646
pip install --ignore-installed --upgrade --user selenium
Upvotes: 0
Reputation: 2634
we can directly use the python command with pip option to install further packages as following, without the need of setting pip in path environment:-
C:\ python -m pip install python_module_name
C:\ python -m pip install selenium
This will install the module using pip.
Upvotes: 0
Reputation: 2053
You need to install pip in windows system so you can find pip.exe for that and using that you can easily install selenium
other way is to install selenium is easy_install selenium
Upvotes: 0
Reputation:
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.
More details on here if you want.
Upvotes: 5