简体   繁体   中英

How to install selenium package using pip on Windows XP?

I am running Windows XP SP3 where I installed Python-3.4.1. I want to install [selenium] webdriver 2 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 ?

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.

要安装 selenium,请使用此命令,包括 --User。

pip install --ignore-installed --upgrade --user selenium

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM