I. Required software: 1. python2.7.13 2. Pycharm 3. Selenium 4. Chromedriver 5. Chrome browser
All software:
Python3.6:https://www.python.org/ftp/python/3.6.1/python-3.6.1.exe
Pycharm Community Edition: Https://download.jetbrains.com/python/pycharm-community-2017.1.5.exe
Selenium: Install via PIP (subsequent)
chromedriver2.30 version: Http://npm.taobao.org/mirrors/chromedriver/2.30/chromedriver_win32.zip
Chrome Browser: Http://sw.bos.baidu.com/sw-search-sp/software/14aca1f5063ab/ChromeStandalone_59.0.3071.115_Setup.exe
2. Software Installation
2.1 python3.6
1. Select Custom install and add to environment variables
2. Next step
3. Custom Installation Path Installation
4. Installation Complete
2. Installing Selenium
2.1 Configuring the domestic PIP image
In the C:\Users\ user list (specifically open cmd, the first display folder) "Set up the PIP directory", My computer is C:\users\wang, other people c:\users\ their own account
Save the following code as Pip.ini, and save it to the Pip folder directory
[Global] Index-url=http://pypi.douban.com/simple/[install] trusted-host=pypi.douban.com
After saving, the complete path is as shown in "Everyone's computer account is different, highlighting the difference"
" Note " When creating a new Pip.ini, display the file suffix name and ensure that the suffix. ini.
The specific settings are:
In the view option, remove the check mark for the hidden common extension, and examine the suffix pip.ini instead of pip.ini.txt
Results.
2.2 Install Selenium, enter pip install selenium at the command line, the following is the normal download installation
Python Selenium Environment Development Novice Build Guide