A, selenium works
Second, install python
Under Window System, python installation is very simple. Access python.org/download, download the latest version, the installation process is similar to other windows software. Remember to set the path environment variable After downloading, then the Windows command line you can call:
Third, the installation selenium
dos in entering the python installation directory scripts folder input pip install selenium
Use the following command to see if the installation was successful:
pip show selenium
Fourth, install visual studio code
https://jingyan.baidu.com/article/6d704a136d72ae28db51ca27.html
Fifth, the problems encountered
1、pip安装selenium提示:Unknow or unsupported command install
When installing Python, obviously already have installed pip, pip prompted by the installation selenium: Unknow or unsupported command install, the reason may be due to multiple pip already installed (also possible to install additional software pip).
Solutions are as follows:
(1) where pip pip to find the path of all;
(2) to find and enter the pip Road King in Python;
(3) then can be installed by pip install selenium;
2, pthon program execution pip install *** error SyntaxError: invalid syntax
In fact, the error for the simple reason that it should not download package python development environment, you should use exit () command to exit the Python environment,
Then run pip3 install *** can successfully download dependencies.