Http://www.cnblogs.com/fnng/p/3157639.html
Build platform Windows
The preparation tools are as follows:
Unknown encoding:cp65001 anomalies
Python after installation into the command line interactive mode, enter any code is reported unknown encoding:cp65001 exception
Need to modify the encoding (UTF-8) to Simplified Chinese (GBK)
Executing chcp in CMD window 936
-------------------------------------------------------------
Download python
http://python.org/getit/
Download Setuptools "Python's Basic Package tool"
# Http://pypi.python.org/pypi/setuptools
https://pypi.python.org/packages/2.7/s/setuptools/
Download Pip "Python's installation package management tool"
Https://pypi.python.org/pypi/pip
-------------------------------------------------------------
Because the version is updated, Pyhton select 2.7.xx, Setuptools choose the version of your platform, Pip do not worry about tar.gz as available under Windows.
Window Installation steps:
1, Python installation, this does not explain, EXE file run installation can, since you choose Python, I believe you are familiar with Python, I install directory C:\Python27
2, Setuptools installation is also very simple, the same EXE file, the default will find the Python installation path, will be installed in the C:\Python27\Lib\site-packages directory.
Via the Setuptools connection provided above, drag the page to the bottom to find, setuptools-1.3.2.tar.gz file (version will be updated with time version), unzip the file, find Ez_ install.py file, enter the Windows command prompt to execute ez_install.py:
C:\setuptools-1.3>python ez_install.py No error indicates successful installation.
(If you are prompted that Python is not an internal or external command!) Don't worry, just configure the environment variable.)
Modify My Computer, properties, advanced-environment variable--the path in the system variable is: Variable name: PATH Variable value:; C:\Python27 |
3, install PIP, I am the default decompression in the C:\pip-1.3.1 directory
4. Open a command prompt (start---cmd return) Enter the C:\pip-1.3.1 directory:
C:\pip-1.3.1 > Python setup.py install
5, then switch to the C:\Python27\Scripts directory input:
C:\Python27\Scripts > Easy_install pip
6, Installation Selenium, (: Https://pypi.python.org/pypi/selenium)
If it is connected, you can enter the command installation directly under C:\Python27\Scripts:
C:\Python27\Scripts > Pip install-u Selenium
If there is no Internet connection (this is generally not possible), download Selenium 2.33.0 (currently the latest version)
and unzip the entire directory into the C:\Python27\Lib\site-packages directory.
Windows Python easy_install, Pip. Selenium