First, installation python
1. Download and install Python
Access to the official website of Python: HTTP://WWW.PYTHON.PRG find the download page for download of the required version, can download python2.x or python3.x. For window users, if the 32-bit system chooses the X86 version. If the 64-bit system chooses the 64 version. After the download is the. msi suffix file, double-click to install. Follow the usual installation.
After installation, you can see the following:
Open your own idle programmable program
Note: If the installation is not the default installation path, you will be prompted that Python is not an internal or external command, you can set the Python installation path in the system variable path. Added in My Computer-Properties-advanced-environment variable-system variable path.
1, installation Setuptools
The Setuptools is installed to install some modules.
In Https://pypi.Python.org/pypi/setuptools download, the Setuptools-18.0.1.zip file extracted to any directory, decompression can find setup.py. Go to the Windows command prompt (Start-run--cmd command, enter) and go to Setuptools-18.0.1.zip after extracting the storage path to execute, such as:
C:\setuptools-18.0.1>python setup.py Install
2. Install Pip
It is easy to install Python packages with PIP. You need to install Setuptool before you install PIP. In Https://pypi.Python.org/pypi/pip download, the Pip-7.1.0.zip file extracted to any directory, decompression can find setup.py. Go to the Windows command prompt (Start-run--cmd command, enter) and go to Pip-7.1.0.zip after extracting the storage path to execute, such as:
C \ pip-7.1.0>python setup.py Install
Note that Python3 has been integrated with PIP
Second, installation Selenium
1, if the computer is connected to the state, you can directly enter the C:\Python27\Scripts
Command installation:
C:\Python27\Scripts > >pip install-u Selenium
If you are not connected to the Internet, you can also download selenium directly and unzip the entire directory into the C:\Python27\Lib\site-packages directory.
Third, Installing browser Drivers
Firefox has no need to install drivers. Download Google and IE browser drivers, Chromdriver.exe and IEDriverServer.exe. Put the browser driver directly in the Python installation directory.
Four, Eclipse+pydev plug-in installation
1. Install Eclipse
(1) Eclipse does not need to install, unzip folder, click Eclipse.exe to use
2. Install Pydev plug-in
(1) Decompression Pydev can see features and plugins two directories, and then copy the contents of the two directories to ecplise corresponding directory
(2) Then ecplise Configure the installed Pydev plug-in:
Ecplise->window->prefrences->pydev->interpreters->python Interpreter
(3) then select NEW:
Interpreter Name: You can name it or empty it.
Installation path for interpreter Executable:python
Python+selenium+eclipse+pydev Automated test Environment setup