Summary of problems encountered by Python in building webdriver environment

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.