1. Download and install jdk, then add the dir of java to system variable – path.
Note: If you are not sure how to add one dir to system variable Path, please refer to the followin steps; otherwise please skip this.
(1) Right click “Computer” in Desktop, select and click Prefernce (属性)
(2) Click “Advanced System Settings” (高级系统设置)
(3) In the pop up window, click Advanced (高级) tab, then click “Environment Variable” (环境变量)
(4) Under “System Variable” (系统变量) click Path
(5) In the pop up “Edit System Variable” window, add your java.exe dir to Path. e.g. your java.exe path is C:\yourpath, the original Path is “%SystemRoot%\system32″, after edit it should be “%SystemRoot%\system32;C:\yourpath”
2. Download and install python
3. Add dir of python.exe to system variable – Path
4. Download and install ez_setup.py by run command “python ez_setup.py”, then add dir of easy_install.exe (e.g. D:\your_python_installation_dir\Scripts) to system variable – Path
5. Download and install pip (python setup.py install), then add dir of pip (D:\your_python_installation_dir\Scripts) to system variable.
6. Setup virtualenv
(1) run “pip install virtualenv”
(2) make sure dir of virtualenv.exe is in system environment variable
(3) create working dir for your coding project, under it run “virtualenv MyEnv”
(4) go to MyEnv\Scripts run “activate.bat”
7. Under “MyEnv” Run “pip install selenium”