Search code examples
python-3.xseleniumbotspython-importimporterror

How to import sucsesfully selenium


I have just started to try to learn to use selenium. When i try to import from selenium the module webdriver, like this:

    from selenium import webdriver

Only this but the shell say

    ImportError: cannot import name 'webdriver' from partially initialized module 'selenium' (most likely due to a circular import)

What should i do? Thanks


Solution

  • I think you named your file selenium.py

    If yes: then change the name please.