python - 为什么安装了selenium但是引入不了webdriver
PHPz
PHPz 2017-04-18 10:27:55
0
3
949

PHPz
PHPz

学习是最好的投资!

reply all(3)
左手右手慢动作

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

pip3 install selenium
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!