python 설치 후에 한동안 사용하지 않아 upgrade가 필요했나 봄.
문제
python 파일을 만들어 수행하려고 하니 'HTMLParser' object has no attribute 'unescape' 오류가 발생.
1초 해결.
pip3 install --upgrade setuptools
# pip3 install --upgrade setuptools
Requirement already satisfied: setuptools in /usr/local/lib/python3.9/site-packages (54.1.2)
Collecting setuptools
Downloading setuptools-60.2.0-py3-none-any.whl (953 kB)
|████████████████████████████████| 953 kB 11.2 MB/s
Installing collected packages: setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 54.1.2
Uninstalling setuptools-54.1.2:
Successfully uninstalled setuptools-54.1.2
Successfully installed setuptools-60.2.0
WARNING: You are using pip version 21.0.1; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip' command.
덧붙여, pip install --upgrade pip 도 해주시는게 좋을 듯하여 실행
# pip3 install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (21.0.1)
Collecting pip
Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
|████████████████████████████████| 1.7 MB 11.3 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.0.1
Uninstalling pip-21.0.1:
Successfully uninstalled pip-21.0.1
Successfully installed pip-21.3.1