The installation process is a reference to the Pythonwebdriver Environment Building section of the Selenium2python Automated testing practice
During the installation process, encountered a number of problems, summed up, for the future to encounter the same problem to make a note to view;
Question 1. no setuptools module appears during PIP installation
Reason:
Setuptools module not successfully installed
Workaround:
Install setuptools, cmd command line interface directory switch to setuptools corresponding to the installation directory, execute command Python easy_install.py
If Error:no URLs appear, filenames, or requirements specified (see--HELP), execute Python setup.py install
Question 2. in the Python idle input from Selenium import webdriver check appears importerror:no module named ' Selenium '
Cause: Selenium not installed successfully
Workaround: Pip installation Selenium error, here through the query found two problems and solutions,
one was an error saying no match was found. Selenium , check the Netizen replied that his in the company intranet, in the home use outside the network can be installed normally, here I did not use. (Because my network environment is normal environment, do not know how to solve the problem, and so on the back there is time to study it carefully)
the other is available through :http://pypi.python.org/pypi/selenium Download the Selenium installation package and unzip it to the python installation path. the lib/site_packages directory.
and in cmd Command Line executes commands on this path Python setup.py Install execute complete, reopen Pythonidle Enter the information just now and find no error .
Summary of problems encountered by Python in building webdriver environment