我正在尝试导入selenium webdriver,使用Python IDLE 3.7 64bit编写脚本:我使用的命令是“ from selenium import webdriver”

时间:2018-08-28 21:08:46

标签: python selenium selenium-webdriver

我已经安装了硒(3.14),pip运行正常。但是,当我尝试导入webdriver时:“从硒导入webdriver”。我收到以下错误。

Traceback (most recent call last):

  File "<pyshell#2>", line 1, in <module>
    from selenium import webdriver

  File "C:\Python37\lib\site-packages\selenium-3.14.0-py3.7.egg\selenium\webdriver\__init__.py", line 18, in <module>
    from .firefox.webdriver import WebDriver as Firefox  # noqa

  File "C:\Python37\lib\site-packages\selenium-3.14.0-py3.7.egg\selenium\webdriver\firefox\webdriver.py", line 29, in <module>
    from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver

  File "C:\Python37\lib\site-packages\selenium-3.14.0-py3.7.egg\selenium\webdriver\remote\webdriver.py", line 27, in <module>
    from .remote_connection import RemoteConnection

  File "C:\Python37\lib\site-packages\selenium-3.14.0-py3.7.egg\selenium\webdriver\remote\remote_connection.py", line 24, in <module>
    import urllib3

  File "C:\Python37\lib\site-packages\urllib3-0.3-py3.7.egg\urllib3\__init__.py", line 1, in <module>
    from connectionpool import HTTPConnectionPool, HTTPSConnectionPool, get_host, connection_from_url ModuleNotFoundError: No module named 'connectionpool'

0 个答案:

没有答案