我已经安装了硒(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'