【问题标题】:How to import sucsesfully selenium如何成功导入硒
【发布时间】:2020-08-10 19:54:18
【问题描述】:

我刚刚开始尝试学习使用 selenium。当我尝试从 selenium 导入模块 webdriver 时,如下所示:

    from selenium import webdriver

只有这个,但shell说

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

我该怎么办?谢谢

【问题讨论】:

标签: python-3.x selenium bots python-import importerror


【解决方案1】:

我认为您将文件命名为 selenium.py

如果是: 那么请改名。

【讨论】:

  • 哦,天哪,我永远猜不到它以某种方式被禁止!谢谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-01-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-05-30
相关资源
最近更新 更多