ImportError: cannot import name 'webdriver'

前端 未结 6 1181
梦毁少年i
梦毁少年i 2020-12-15 15:31

I am a newbie for selenium python. I have installed python, pip etc.. I am trying to run the below code but it is showing error:

ImportError: cannot

6条回答
  •  伪装坚强ぢ
    2020-12-15 16:18

    I solved it by reinstalling the older version of selenium package because the newest version doesn't support Python 2.6.6 which in my case was installed and I didn't have root access to install the new one.

    While the newest version of selenium package doesn't have support for Python 2.6.6, I had to downgrade by reinstalling the selenium package with lower version

    pip uninstall selenium
    pip install --user selenium==3.5.0
    

提交回复
热议问题