====== 2021.11.09 ModuleNotFoundError: No module named 'packaging' ======
エラー「ModuleNotFoundError: No module named 'packaging'」
packaging Modeleがないパターン
C:\Users\s-matsui>python se2.py
Traceback (most recent call last):
File "C:\Users\s-matsui\se2.py", line 1, in
from seleniumwire.undetected_chromedriver.v2 import Chrome, ChromeOptions
File "C:\Users\s-matsui\AppData\Local\Programs\Python\Python39\lib\site-packages\seleniumwire\undetected_chromedriver\__init__.py", line 8, in
from seleniumwire.webdriver import Chrome
File "C:\Users\s-matsui\AppData\Local\Programs\Python\Python39\lib\site-packages\seleniumwire\webdriver.py", line 4, in
from packaging import version
ModuleNotFoundError: No module named 'packaging'
===== 対応 =====
まずpipをupgrade
pip install --upgrade pip
その後packagingをインストール
pip install packaging
{{tag>日記}}