seleniumをimportinstallした上で
from selenium import webdriver を from selenium import webdriver
を実行すると、
Traceback (most recent call last):
File "", line 1, in
File "/opt/anaconda3/lib/python3.8/site-packages/selenium/webdriver/init.py", line 18, in
from .firefox.webdriver import WebDriver as Firefox # noqa
File "/opt/anaconda3/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py", line 36, in
from .service import Service
File "/opt/anaconda3/lib/python3.8/site-packages/selenium/webdriver/firefox/service.py", line 21, in
class Service(service.Service):
AttributeError: module 'selenium.webdriver.common.service' has no attribute 'Service'
と以下のエラーが表示されてしまししまいます。
ど
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/lib/python3.8/site-packages/selenium/webdriver/__init__.py", line 18, in <module>
from .firefox.webdriver import WebDriver as Firefox # noqa
File "/opt/anaconda3/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py", line 36, in <module>
from .service import Service
File "/opt/anaconda3/lib/python3.8/site-packages/selenium/webdriver/firefox/service.py", line 21, in <module>
class Service(service.Service):
AttributeError: module 'selenium.webdriver.common.service' has no attribute 'Service'
どなたか解決策をご教授できませんでしょうか。
よろしくお願いいたします。