![](/img/trans.png)
[英]No module named selenium even after Requirement already satisfied: selenium
[英]ModuleNotFoundError: No module named 'selenium' even though Requirement already satisfied
我知道有類似的問題,但沒有一個解決方案對我有用。
我的 jupyter 筆記本出現 ModuleNotFound 錯誤
from selenium import webdriver
但是,我已經使用pip3 install selenium
下載了模塊
在我的筆記本所在的目錄中,我檢查了有一個 selenium 文件夾。
/Users/my_usr/my_folder/lib/python3.8/site-packages/selenium
我檢查了我的 python 版本是 3.8.5。 使用下面的 function:
from platform import python_version
python_version()
有人可以建議我為什么會收到ModuleNotFound error
嗎?
可能發生這種情況是因為您在3.8 Python 版本中安裝了 Selenium,而您使用另一個ZA7F5F35426B927411FC9231B5638213.10Z版本運行此代碼,例如3.9或?
有關更多詳細信息,請參閱此答案
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.