学习是最好的投资!
The script file name cannot have the same name as the module name, just change it
There is a file named selenium.py 的 module, import 的時候會優先引入該模組, 那自然是沒有 webdriver under your current path.
selenium.py
import
webdriver
Just change the name, this is a very common import problem.
Questions I answered: Python-QA
It seems that Selenium is not installed. Visual inspection uses python3 but the system has built-in Python 2?You may need to reinstall selenium using pip3
pip3 install selenium
The script file name cannot have the same name as the module name, just change it
There is a file named
selenium.py
的 module,import
的時候會優先引入該模組, 那自然是沒有webdriver
under your current path.Just change the name, this is a very common import problem.
Questions I answered: Python-QA
It seems that Selenium is not installed. Visual inspection uses python3 but the system has built-in Python 2?
You may need to reinstall selenium using pip3