seleniumをインストールしたのに以下エラー
from selenium import webdriver
ModuleNotFoundError: No module named ‘selenium’
※pip list を実行するとseleniumはインストールされている
解決策
どうやら Microsoft storeからのPythonインストール と Pythonインストーラーからのインストール両方行うとVsCode Launcher が 前者にバインドされる模様。
そのためMicrosoft storeからインストールしたPythonをアンインストールする。


参考:
https://stackoverflow.com/questions/43797328/modulenotfounderror-no-module-named-selenium
コメント